From 17f81d13a3d39ac88c211d6bb1cc01b6bef1f2f0 Mon Sep 17 00:00:00 2001 From: Aaron Kimbrell Date: Sat, 23 Nov 2024 03:32:31 -0600 Subject: [PATCH] fix: normalize mixed slashes when looking for files (#1654) --- dZoneManager/Zone.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/dZoneManager/Zone.cpp b/dZoneManager/Zone.cpp index 44532fc9..1d657075 100644 --- a/dZoneManager/Zone.cpp +++ b/dZoneManager/Zone.cpp @@ -160,6 +160,7 @@ std::string Zone::GetFilePathForZoneID() { if (zone != nullptr) { std::string toReturn = "maps/" + zone->zoneName; std::transform(toReturn.begin(), toReturn.end(), toReturn.begin(), ::tolower); + std::ranges::replace(toReturn, '\\', '/'); return toReturn; }