1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-23 22:49:09 +00:00

Fix #9951: Scenario editor random industries button and persistent storage (#9952)

BasePersistentStorageArray::SwitchMode was not called
This commit is contained in:
Jonathan G Rennison
2022-07-21 16:21:38 +01:00
committed by GitHub
parent 8f772352ce
commit 67331fe946

View File

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