Skip to content

Commit

Permalink
Playthrough console application: fix for no arguments given
Browse files Browse the repository at this point in the history
  • Loading branch information
jonas committed Jul 5, 2018
1 parent 813bd39 commit 6fd14d1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Game/Playthrough/Playthrough.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down

0 comments on commit 6fd14d1

Please sign in to comment.