From 908f67a799af3566e9bcf6119ecb38a9fa7067a7 Mon Sep 17 00:00:00 2001 From: Lion Kortlepel Date: Mon, 20 Sep 2021 23:40:28 +0200 Subject: [PATCH] Fix compile error --- src/TLuaEngine.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/TLuaEngine.cpp b/src/TLuaEngine.cpp index bc49d68..b890541 100644 --- a/src/TLuaEngine.cpp +++ b/src/TLuaEngine.cpp @@ -660,7 +660,7 @@ void TPluginMonitor::operator()() { auto CurrentTime = fs::last_write_time(Pair.first); if (CurrentTime != Pair.second) { mFileTimes[Pair.first] = CurrentTime; - if (fs::path(Pair.first)) { + if (fs::equivalent(fs::path(Pair.first), mPath / "Server")) { beammp_info("File \"" + Pair.first + "\" changed, reloading"); // is in root folder, so reload std::ifstream FileStream(Pair.first, std::ios::in | std::ios::binary);