mirror of https://github.com/OpenRCT2/OpenRCT2.git
Fix loading of RCT1 parks from command line
This commit is contained in:
parent
9e321b69ee
commit
785a6ac850
|
@ -45,6 +45,11 @@ public:
|
|||
Guard::ArgumentNotNull(objectRepository);
|
||||
|
||||
_objectRepository = objectRepository;
|
||||
_loadedObjects = Memory::AllocateArray<Object *>(OBJECT_ENTRY_COUNT);
|
||||
for (size_t i = 0; i < OBJECT_ENTRY_COUNT; i++)
|
||||
{
|
||||
_loadedObjects[i] = nullptr;
|
||||
}
|
||||
|
||||
UpdateLegacyLoadedObjectList();
|
||||
UpdateSceneryGroupIndexes();
|
||||
|
|
|
@ -377,10 +377,12 @@ bool rct2_open_file(const char *path)
|
|||
} else if (_stricmp(extension, "sv4") == 0) {
|
||||
if (rct1_load_saved_game(path)) {
|
||||
game_load_init();
|
||||
return true;
|
||||
}
|
||||
} else if (_stricmp(extension, "sc4") == 0) {
|
||||
if (rct1_load_scenario(path)) {
|
||||
scenario_begin();
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue