Changeset - r26318:3e49f5939dd4
[Not reviewed]
master
0 1 0
Jonathan G Rennison - 23 months ago 2022-07-21 15:21:38
j.g.rennison@gmail.com
Fix #9951: Scenario editor random industries button and persistent storage (#9952)

BasePersistentStorageArray::SwitchMode was not called
1 file changed with 2 insertions and 0 deletions:
0 comments (0 inline, 0 general)
src/industry_gui.cpp
Show inline comments
 
@@ -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();
 
		}
 
	}
0 comments (0 inline, 0 general)