1
0
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:
Gymnasiast
2024-10-30 22:42:09 +01:00
committed by Aaron van Geffen
parent 7c69ba3d6a
commit d722eddd90

View File

@@ -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);