mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-16 00:12:51 +00:00
(svn r14564) -Fix (r14555): one more incorrect use of lastof()
This commit is contained in:
parent
1ce81ff587
commit
f8c8405311
@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user