diff --git a/src/Game/Playthrough/Playthrough.cs b/src/Game/Playthrough/Playthrough.cs index d1647e3..3774e10 100644 --- a/src/Game/Playthrough/Playthrough.cs +++ b/src/Game/Playthrough/Playthrough.cs @@ -31,11 +31,11 @@ static void Main(string[] args) STACK.Logging.Log.AddLogger(new STACK.Logging.SystemConsoleLogHandler()); - if (null != args && "click" == args[0]) + if (null != args && 0 < args.Count() && "click" == args[0]) { ExecuteClicks(); } - else if (null != args && "interact" == args[0]) + else if (null != args && 0 < args.Count() && "interact" == args[0]) { ExecuteInteractions(); }