diff --git a/src/UESaveFile/UESaveFile.cpp b/src/UESaveFile/UESaveFile.cpp index 16e6310..c8bdd93 100644 --- a/src/UESaveFile/UESaveFile.cpp +++ b/src/UESaveFile/UESaveFile.cpp @@ -40,6 +40,7 @@ auto UESaveFile::lastError() const -> const std::string& { auto UESaveFile::reloadData() -> bool { if(_noReloadAfterSave) { + _noReloadAfterSave = false; return valid(); } @@ -211,8 +212,11 @@ void UESaveFile::loadData() { } if(_properties.back()->name != "None" && _properties.back()->propertyType != "NoneProperty") { + _lastError = "Couldn't find a final NoneProperty."; return; } + reader.closeFile(); + _valid = true; }