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

BasePersistentStorageArray::SwitchMode was not called
pull/428/head
Jonathan G Rennison 2 years ago committed by GitHub
parent 8f772352ce
commit 67331fe946
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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…
Cancel
Save