Fix command input for short input

This commit is contained in:
Andrew Cooper
2021-03-02 16:06:45 +11:00
parent 8782d714e8
commit fb88b706fd

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;