0
0
mirror of https://github.com/sp-tarkov/patcher.git synced 2025-02-13 01:30:47 -05:00

fix args out of range exception

This commit is contained in:
IsWaffle 2022-05-15 18:12:50 -04:00
parent 434c81e2b0
commit 0e3a82a670
2 changed files with 2 additions and 2 deletions

View File

@ -19,7 +19,7 @@ namespace PatchClient
{
bool autoClose = false;
if(desktop.Args != null && desktop.Args[0].ToLower() == "autoclose")
if(desktop.Args != null && desktop.Args.Length >= 1 && desktop.Args[0]?.ToLower() == "autoclose")
autoClose = true;
desktop.MainWindow = new MainWindow

Binary file not shown.