mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-06-25 06:29:47 +01:00
(svn r13739) -Fix (r13731): some variables would be erroneously zeroed, causing autoclean and company passwords not to work.
This commit is contained in:
parent
bfa66f70b3
commit
c4467aa8fb
@ -1297,7 +1297,9 @@ void NetworkPopulateCompanyInfo()
|
|||||||
uint i;
|
uint i;
|
||||||
uint16 months_empty;
|
uint16 months_empty;
|
||||||
|
|
||||||
memset(_network_player_info, 0, sizeof(_network_player_info));
|
for (PlayerID pid = PLAYER_FIRST; pid < MAX_PLAYERS; pid++) {
|
||||||
|
if (!IsValidPlayerID(pid)) memset(&_network_player_info[pid], 0, sizeof(NetworkPlayerInfo));
|
||||||
|
}
|
||||||
|
|
||||||
FOR_ALL_PLAYERS(p) {
|
FOR_ALL_PLAYERS(p) {
|
||||||
// Clean the info but not the password
|
// Clean the info but not the password
|
||||||
|
Loading…
Reference in New Issue
Block a user