diff --git a/Core/GameEngineDevice/Source/StdDevice/Common/StdLocalFileSystem.cpp b/Core/GameEngineDevice/Source/StdDevice/Common/StdLocalFileSystem.cpp index 796070c253e..f6c950dad06 100644 --- a/Core/GameEngineDevice/Source/StdDevice/Common/StdLocalFileSystem.cpp +++ b/Core/GameEngineDevice/Source/StdDevice/Common/StdLocalFileSystem.cpp @@ -331,7 +331,7 @@ AsciiString StdLocalFileSystem::normalizePath(const AsciiString& filePath) const std::string nonNormalized(filePath.str()); #ifndef _WIN32 // Replace backslashes with forward slashes on non-Windows platforms - std::replace(unNormalized.begin(), unNormalized.end(), '\\', '/'); + std::replace(nonNormalized.begin(), nonNormalized.end(), '\\', '/'); #endif std::filesystem::path pathNonNormalized(nonNormalized); return AsciiString(pathNonNormalized.lexically_normal().string().c_str());