mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-20 05:23:04 +01:00
Handle missing STEX without crashing
This commit is contained in:
committed by
Aaron van Geffen
parent
7c69ba3d6a
commit
d722eddd90
@@ -539,7 +539,12 @@ private:
|
||||
if (entry.HasValue())
|
||||
{
|
||||
const auto* ori = _objectRepository.FindObject(entry);
|
||||
if (ori == nullptr && entry.GetType() != ObjectType::ScenarioText)
|
||||
if (ori == nullptr && entry.GetType() == ObjectType::ScenarioText)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
if (ori == nullptr)
|
||||
{
|
||||
missingObjects.push_back(entry);
|
||||
ReportMissingObject(entry);
|
||||
|
||||
Reference in New Issue
Block a user