1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-24 15:09:10 +00:00

(svn r14564) -Fix (r14555): one more incorrect use of lastof()

This commit is contained in:
smatz
2008-11-04 18:20:41 +00:00
parent 39450b6e4e
commit f23dabb149

View File

@@ -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));
}
}