From 597d1853eebef71fd410111de63ba81ebce22661 Mon Sep 17 00:00:00 2001 From: elsid Date: Wed, 18 Sep 2024 23:52:44 +0200 Subject: [PATCH] Use normalized path in ESM LuaScripts --- components/esm/luascripts.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/esm/luascripts.cpp b/components/esm/luascripts.cpp index 71e2ce6dc1..81cc867aff 100644 --- a/components/esm/luascripts.cpp +++ b/components/esm/luascripts.cpp @@ -56,7 +56,7 @@ void ESM::LuaScriptsCfg::load(ESMReader& esm) { mScripts.emplace_back(); ESM::LuaScriptCfg& script = mScripts.back(); - script.mScriptPath = esm.getHString(); + script.mScriptPath = VFS::Path::Normalized(esm.getHString()); esm.getSubNameIs("LUAF"); esm.getSubHeader(); @@ -161,7 +161,7 @@ void ESM::LuaScripts::load(ESMReader& esm) { while (esm.isNextSub("LUAS")) { - std::string name = esm.getHString(); + VFS::Path::Normalized name(esm.getHString()); std::string data = loadLuaBinaryData(esm); std::vector timers; while (esm.isNextSub("LUAT"))