(svn r13739) -Fix (r13731): some variables would be erroneously zeroed, causing autoclean and company passwords not to work.

This commit is contained in:
rubidium 2008-07-19 20:23:51 +00:00
parent bfa66f70b3
commit c4467aa8fb

View File

@ -1297,7 +1297,9 @@ void NetworkPopulateCompanyInfo()
uint i;
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) {
// Clean the info but not the password