mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-17 21:25:40 +00:00
(svn r13676) -Fix [FS#2126]: inactive companies from old (TTD) saves could be marked active in some cases, which then loads garbage in their statistics and such.
This commit is contained in:
parent
9a8d1bcad5
commit
7375d56418
@ -1007,9 +1007,13 @@ static bool LoadOldPlayer(LoadgameState *ls, int num)
|
||||
|
||||
if (!LoadChunk(ls, p, player_chunk)) return false;
|
||||
|
||||
if (_old_string_id == 0) {
|
||||
p->is_active = false;
|
||||
return true;
|
||||
}
|
||||
|
||||
p->name_1 = RemapOldStringID(_old_string_id);
|
||||
p->president_name_1 = RemapOldStringID(_old_string_id_2);
|
||||
p->player_money = p->player_money;
|
||||
_players_ai[_current_player_id].tick = ai_tick;
|
||||
|
||||
if (num == 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user