mirror of https://github.com/OpenRCT2/OpenRCT2.git
Log to console when invalid objects found during check
This commit is contained in:
parent
fe140c5c20
commit
68c819c01f
|
@ -461,6 +461,7 @@ private:
|
|||
if (ori == nullptr)
|
||||
{
|
||||
invalidEntries.push_back(*entry);
|
||||
ReportMissingObject(entry);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -472,6 +473,7 @@ private:
|
|||
if (loadedObject == nullptr)
|
||||
{
|
||||
invalidEntries.push_back(*entry);
|
||||
ReportObjectLoadProblem(entry);
|
||||
}
|
||||
delete loadedObject;
|
||||
}
|
||||
|
|
|
@ -1779,6 +1779,7 @@ private:
|
|||
if (ori == nullptr)
|
||||
{
|
||||
missingObjects.push_back(entry);
|
||||
Console::Error::WriteLine("[%s] Object not found.", objectName);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -1786,6 +1787,7 @@ private:
|
|||
if (object == nullptr && objectType != OBJECT_TYPE_SCENERY_SETS)
|
||||
{
|
||||
missingObjects.push_back(entry);
|
||||
Console::Error::WriteLine("[%s] Object could not be loaded.", objectName);
|
||||
}
|
||||
delete object;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue