From 40158dc25273daa8b2283773ced9e5a7db8e2511 Mon Sep 17 00:00:00 2001 From: Lion Kortlepel Date: Wed, 8 May 2024 11:21:38 +0200 Subject: [PATCH] fix compile error --- src/TLuaEngine.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/TLuaEngine.cpp b/src/TLuaEngine.cpp index f3e987c..b16f283 100644 --- a/src/TLuaEngine.cpp +++ b/src/TLuaEngine.cpp @@ -379,8 +379,7 @@ void TLuaEngine::CollectAndInitPlugins() { }); for (const auto& Dir : PluginsEntries) { - auto Path = Dir.path(); - Path = fs::relative(Path); + auto Path = fs::relative(Dir); TLuaPluginConfig Config { Path.stem().string() }; FindAndParseConfig(Path, Config); InitializePlugin(Path, Config);