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:
@@ -102,7 +102,8 @@ TmxReader::Error TmxReader::Open(const std::string& inPath,
|
||||
});
|
||||
}
|
||||
}
|
||||
mObjects.emplace(objs);
|
||||
if (!objs.empty())
|
||||
mObjects.emplace(objs);
|
||||
}
|
||||
|
||||
return Error::OK;
|
||||
|
||||
Reference in New Issue
Block a user