Actually fix

This commit is contained in:
FutureRave 2022-02-08 16:41:49 +00:00
parent 52f675d2ed
commit 6dcdef8146
No known key found for this signature in database
GPG Key ID: E883E2BC9657D955

View File

@ -252,10 +252,11 @@ namespace Components
Utils::IO::WriteFile(Utils::String::VA("raw/%s.ents", name.data()), asset.mapEnts->entityString, true);
}
static std::string mapEntities;
FileSystem::File ents(name + ".ents");
if (ents.exists())
{
static const auto mapEntities = ents.getBuffer();
mapEntities = ents.getBuffer();
asset.mapEnts->entityString = mapEntities.data();
asset.mapEnts->numEntityChars = mapEntities.size() + 1;
}