This commit is contained in:
aozhiwei 2023-06-30 13:37:22 +08:00
parent 877716cd68
commit e59d206cd5

View File

@ -201,7 +201,8 @@ namespace mt
}; };
a8::XObject root; a8::XObject root;
if (root.ReadFromFile(MetaMgr::Instance()->GetResDir() + world_object_file())) { if (!world_object_file().empty() &&
root.ReadFromFile(MetaMgr::Instance()->GetResDir() + world_object_file())) {
{ {
auto thing = root.At("thing"); auto thing = root.At("thing");
for (int i = 0; i < thing->Size(); ++i) { for (int i = 0; i < thing->Size(); ++i) {