UESaveFile: add sanity check when reading files.
This commit is contained in:
parent
0826d4aede
commit
0006c90a21
1 changed files with 4 additions and 0 deletions
|
@ -197,5 +197,9 @@ void UESaveFile::loadData() {
|
||||||
arrayAppend(_properties, std::move(prop));
|
arrayAppend(_properties, std::move(prop));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(_properties.back()->name != "None" && _properties.back()->propertyType != "NoneProperty") {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
_valid = true;
|
_valid = true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue