(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 1ce81ff587
commit f8c8405311

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