Handle missing STEX without crashing

This commit is contained in:
Gymnasiast authored and Aaron van Geffen committed 2024-10-30 22:58:47 +01:00
1 parent 7c69ba3d6a
commit d722eddd90
1 file changed
+6 -1
+6 -1
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);