mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-10 08:00:05 +00:00
BasePersistentStorageArray::SwitchMode was not called
This commit is contained in:
parent
8f772352ce
commit
67331fe946
@ -612,7 +612,9 @@ public:
|
||||
} else {
|
||||
extern void GenerateIndustries();
|
||||
Backup<bool> old_generating_world(_generating_world, true, FILE_LINE);
|
||||
BasePersistentStorageArray::SwitchMode(PSM_ENTER_GAMELOOP);
|
||||
GenerateIndustries();
|
||||
BasePersistentStorageArray::SwitchMode(PSM_LEAVE_GAMELOOP);
|
||||
old_generating_world.Restore();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user