Fix #3934: Crash upon loading scenario

This commit is contained in:
Ted John committed 2016-09-29 17:53:14 +01:00
1 parent 63cec64a4a
commit b3b2f1d1a7
3 files changed
+10 -5

No files matched your search

+1 -1
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)