Fix compile error

This commit is contained in:
Lion Kortlepel 2021-09-20 23:40:28 +02:00
parent 27b5c6d850
commit 908f67a799
No known key found for this signature in database
GPG Key ID: 4322FF2B4C71259B

View File

@ -660,7 +660,7 @@ void TPluginMonitor::operator()() {
auto CurrentTime = fs::last_write_time(Pair.first); auto CurrentTime = fs::last_write_time(Pair.first);
if (CurrentTime != Pair.second) { if (CurrentTime != Pair.second) {
mFileTimes[Pair.first] = CurrentTime; 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"); beammp_info("File \"" + Pair.first + "\" changed, reloading");
// is in root folder, so reload // is in root folder, so reload
std::ifstream FileStream(Pair.first, std::ios::in | std::ios::binary); std::ifstream FileStream(Pair.first, std::ios::in | std::ios::binary);