1
0
mirror of https://github.com/ScrelliCopter/tmx2gba.git synced 2025-02-21 03:29:25 +11:00

fix empty objects list triggering an assertion failure

This commit is contained in:
2024-04-11 16:31:17 +10:00
parent b8d7d43899
commit 224e1e53e9

View File

@@ -102,7 +102,8 @@ TmxReader::Error TmxReader::Open(const std::string& inPath,
});
}
}
mObjects.emplace(objs);
if (!objs.empty())
mObjects.emplace(objs);
}
return Error::OK;