Fix IndexOutOfRangeException on startup

This commit is contained in:
jvyden 2021-12-10 18:26:48 -05:00
commit 67fbd5ed5b
No known key found for this signature in database
GPG key ID: 18BCF2BE0262B278

View file

@ -18,7 +18,7 @@ namespace LBPUnion.ProjectLighthouse
{
public static void Main(string[] args)
{
if (args[0] == "--wait-for-debugger")
if (args.Length != 0 && args[0] == "--wait-for-debugger")
{
Console.WriteLine("Waiting for a debugger to be attached...");
while (!Debugger.IsAttached)