From 62fd3696250393e7391bbbdcf194bda81b0913cc Mon Sep 17 00:00:00 2001 From: Lion Kortlepel Date: Fri, 17 Sep 2021 02:30:20 +0200 Subject: [PATCH] Lua: Fix more compile errors for windows --- src/TLuaPlugin.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/TLuaPlugin.cpp b/src/TLuaPlugin.cpp index b72abcb..e156b5a 100644 --- a/src/TLuaPlugin.cpp +++ b/src/TLuaPlugin.cpp @@ -38,10 +38,10 @@ TLuaPlugin::TLuaPlugin(TLuaEngine& Engine, const TLuaPluginConfig& Config, const auto NRead = std::fread(Contents->data(), 1, Contents->size(), File); if (NRead == Contents->size()) { beammp_debug("Successfully read \"" + Entry.string() + "\" (" + std::to_string(NRead) + " Bytes)"); - mFileContents[fs::relative(Entry)] = Contents; + mFileContents[fs::relative(Entry).string()] = Contents; // Execute first time auto Result = mEngine.EnqueueScript(mConfig.StateId, Contents); - ResultsToCheck.emplace_back(Entry, std::move(Result)); + ResultsToCheck.emplace_back(Entry.string(), std::move(Result)); } else { beammp_error("Error while reading script file \"" + Entry.string() + "\". Did the file change while reading?"); }