Merge pull request #842 from diamante0018/develop

[Maps]: Make local var const
This commit is contained in:
Edo 2023-03-17 22:51:05 +00:00 committed by GitHub
commit 84e8fa2370
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -619,8 +619,8 @@ namespace Components
{
if (entry.is_directory())
{
auto zoneName = entry.path().filename().string();
auto mapPath = std::format("{}\\{}.ff", entry.path().string(), zoneName);
const auto zoneName = entry.path().filename().string();
const auto mapPath = std::format("{}\\{}.ff", entry.path().string(), zoneName);
if (Utils::IO::FileExists(mapPath))
{
FoundCustomMaps.push_back(zoneName);