From 785b858651de6566d264a1f191b7398ca2bcc7a4 Mon Sep 17 00:00:00 2001 From: Lion Kortlepel Date: Sun, 19 Sep 2021 12:29:02 +0200 Subject: [PATCH] Same as last one yikes. --- src/TLuaPlugin.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/TLuaPlugin.cpp b/src/TLuaPlugin.cpp index d128e69..d0631a9 100644 --- a/src/TLuaPlugin.cpp +++ b/src/TLuaPlugin.cpp @@ -40,7 +40,7 @@ TLuaPlugin::TLuaPlugin(TLuaEngine& Engine, const TLuaPluginConfig& Config, const beammp_debug("Successfully read \"" + Entry.string() + "\" (" + std::to_string(NRead) + " Bytes)"); mFileContents[fs::relative(Entry).string()] = Contents; // Execute first time - auto Result = mEngine.EnqueueScript(mConfig.StateId, TLuaChunk(Contents, Entry.string(), MainFolder)); + auto Result = mEngine.EnqueueScript(mConfig.StateId, TLuaChunk(Contents, Entry.string(), MainFolder.string())); ResultsToCheck.emplace_back(Entry.string(), std::move(Result)); } else { beammp_error("Error while reading script file \"" + Entry.string() + "\". Did the file change while reading?");