Fix no arguments causing crash.

lua-bytecode
Icedream 2014-10-23 04:03:20 +02:00
parent 5d67d3e720
commit 1294b5cacd
1 changed files with 1 additions and 1 deletions

View File

@ -10,7 +10,7 @@ namespace GarrysMod.AddonCreator
{
private static void Main(string[] args)
{
switch (args[0])
switch (args.Length == 0 ? "" : args[0])
{
case "create":
{