From 33ebf76a8faf7b07ae5f39b8d6c4636506f2f3c3 Mon Sep 17 00:00:00 2001 From: Edo Date: Sun, 9 Apr 2023 18:39:32 +0200 Subject: [PATCH] [MapRotation]: Exec only from this folder (#917) --- src/Components/Modules/MapRotation.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Components/Modules/MapRotation.cpp b/src/Components/Modules/MapRotation.cpp index de84131e..a449c763 100644 --- a/src/Components/Modules/MapRotation.cpp +++ b/src/Components/Modules/MapRotation.cpp @@ -70,7 +70,7 @@ namespace Components if (!this->containsHandler(key)) { - throw MapRotationParseError(std::format("Invalid key {}", key)); + throw MapRotationParseError(std::format("Invalid key '{}'", key)); } this->addEntry(key, value); @@ -237,7 +237,6 @@ namespace Components void MapRotation::ApplyExec(const std::string& name) { assert(!name.empty()); - Command::Execute(std::format("exec {}", name), false); Command::Execute(std::format("exec game_settings/{}", name), false); }