diff options
Diffstat (limited to 'source/game/StarCommandProcessor.cpp')
-rw-r--r-- | source/game/StarCommandProcessor.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/game/StarCommandProcessor.cpp b/source/game/StarCommandProcessor.cpp index 7b6915e..74fc33a 100644 --- a/source/game/StarCommandProcessor.cpp +++ b/source/game/StarCommandProcessor.cpp @@ -262,7 +262,7 @@ String CommandProcessor::setTileProtection(ConnectionId connectionId, String con return "Not enough arguments to /settileprotection. Use /settileprotection <dungeonId> <protected>"; try { - bool isProtected = lexicalCast<bool>(arguments.takeLast()); + bool isProtected = Json::parse(arguments.takeLast()).toBool(); List<DungeonId> dungeonIds; for (auto& banana : arguments) { auto slices = banana.split(".."); |