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 | f8c8405311e127c9915860ec3757414fc22e5f4a (patch) | |
tree | 69c6059fb8a93743cca018aa221cc9d969c036f4 | |
parent | 1ce81ff58740c84ddc6403b72817a42560136715 (diff) | |
download | openttd-f8c8405311e127c9915860ec3757414fc22e5f4a.tar.xz |
(svn r14564) -Fix (r14555): one more incorrect use of lastof()
-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)); } } |