Auto keyword

This commit is contained in:
Diavolo 2022-02-04 14:56:39 +01:00
parent 09e565e431
commit 52f675d2ed
No known key found for this signature in database
GPG Key ID: FA77F074E98D98A5

View File

@ -252,11 +252,10 @@ 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())
{
mapEntities = ents.getBuffer();
static const auto mapEntities = ents.getBuffer();
asset.mapEnts->entityString = mapEntities.data();
asset.mapEnts->numEntityChars = mapEntities.size() + 1;
}