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