Fix command input for short input

This commit is contained in:
Andrew Cooper
2021-03-02 16:06:45 +11:00
parent 8c2e1c4cab
commit 0c113b568a

View File

@@ -60,7 +60,7 @@ namespace SuperStarTrek
{
var response = GetString("Command");
if (response != "" &&
if (response.Length >= 3 &&
Enum.TryParse(response.Substring(0, 3), ignoreCase: true, out Command parsedCommand))
{
return parsedCommand;