From 52f675d2edb7838b43cabb8767bf9a275e6a8a64 Mon Sep 17 00:00:00 2001 From: Diavolo Date: Fri, 4 Feb 2022 14:56:39 +0100 Subject: [PATCH] Auto keyword --- src/Components/Modules/Maps.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Components/Modules/Maps.cpp b/src/Components/Modules/Maps.cpp index 8e8b3096..e6cbf5c4 100644 --- a/src/Components/Modules/Maps.cpp +++ b/src/Components/Modules/Maps.cpp @@ -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; }