1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-16 19:43:06 +01:00

Fix #3934: Crash upon loading scenario

This commit is contained in:
Ted John
2016-09-29 17:52:16 +01:00
parent 63cec64a4a
commit b3b2f1d1a7
3 changed files with 10 additions and 5 deletions

View File

@@ -413,7 +413,7 @@ private:
{
const rct_object_entry * entry = &entries[i];
const ObjectRepositoryItem * ori = nullptr;
if (check_object_entry(entry))
if (!object_entry_is_empty(entry))
{
ori = _objectRepository->FindObject(entry);
if (ori == nullptr)