diff --git a/src/tmxreader.cpp b/src/tmxreader.cpp index 920932c..96819e8 100644 --- a/src/tmxreader.cpp +++ b/src/tmxreader.cpp @@ -102,7 +102,8 @@ TmxReader::Error TmxReader::Open(const std::string& inPath, }); } } - mObjects.emplace(objs); + if (!objs.empty()) + mObjects.emplace(objs); } return Error::OK;