mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-16 19:43:06 +01:00
protect objects against invalid allocation ids
This commit is contained in:
@@ -645,6 +645,7 @@ extern "C"
|
||||
Object * object = _loadedObjects[i];
|
||||
if (object != nullptr)
|
||||
{
|
||||
object->Unload();
|
||||
object->Load();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user