diff options
author | smatz <smatz@openttd.org> | 2008-11-04 18:20:41 +0000 |
---|---|---|
committer | smatz <smatz@openttd.org> | 2008-11-04 18:20:41 +0000 |
commit | f23dabb149e25c16f24a6f8d43e476242f3777c9 (patch) | |
tree | 69c6059fb8a93743cca018aa221cc9d969c036f4 /src | |
parent | 39450b6e4efddcb98d5a76f84242792efdc2025d (diff) | |
download | openttd-f23dabb149e25c16f24a6f8d43e476242f3777c9.tar.xz |
(svn r14564) -Fix (r14555): one more incorrect use of lastof()
Diffstat (limited to 'src')
-rw-r--r-- | src/network/network_server.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/network_server.cpp b/src/network/network_server.cpp index 3d69cbc02..f337fcad2 100644 --- a/src/network/network_server.cpp +++ b/src/network/network_server.cpp @@ -1194,7 +1194,7 @@ DEF_SERVER_RECEIVE_COMMAND(PACKET_CLIENT_SET_PASSWORD) ci = DEREF_CLIENT_INFO(cs); if (IsValidCompanyID(ci->client_playas)) { - strecpy(_network_company_info[ci->client_playas].password, password, lastof(_network_company_info[0].password)); + strecpy(_network_company_info[ci->client_playas].password, password, lastof(_network_company_info[ci->client_playas].password)); } } |