1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 18:27:35 +00:00

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

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();
}