LibChess: Fix typo that always created DebugCommands as "on"

This commit is contained in:
Sam Atkins 2023-04-21 14:35:24 +01:00 committed by Andreas Kling
parent 8b7c5db186
commit b904435866
Notes: sideshowbarker 2024-07-19 01:59:31 +09:00

View file

@ -30,7 +30,7 @@ DebugCommand DebugCommand::from_string(StringView command)
if (tokens[1] == "on")
return DebugCommand(Flag::On);
if (tokens[1] == "off")
return DebugCommand(Flag::On);
return DebugCommand(Flag::Off);
VERIFY_NOT_REACHED();
}