diff --git a/src/Components/Modules/AssetInterfaces/IMapEnts.cpp b/src/Components/Modules/AssetInterfaces/IMapEnts.cpp index 7c15c0c1..bbcf2fab 100644 --- a/src/Components/Modules/AssetInterfaces/IMapEnts.cpp +++ b/src/Components/Modules/AssetInterfaces/IMapEnts.cpp @@ -14,6 +14,18 @@ namespace Assets Game::MapEnts* entites = builder->getAllocator()->allocate(); Game::MapEnts* orgEnts = Components::AssetHandler::FindOriginalAsset(this->getType(), name.data()).mapEnts; + // TODO: Get rid of that + if (!orgEnts) + { + Game::DB_EnumXAssets(Game::XAssetType::ASSET_TYPE_MAP_ENTS, [](Game::XAssetHeader header, void* mapEnts) + { + if (!*reinterpret_cast(mapEnts)) + { + *reinterpret_cast(mapEnts) = header.mapEnts; + } + }, &orgEnts, false); + } + if (orgEnts) { std::memcpy(entites, orgEnts, sizeof Game::MapEnts);