Fix unknown thing types crashing because of unknown stringarg info

This commit is contained in:
spherallic 2024-05-24 21:08:45 +02:00
parent 097ad4107c
commit 34cf407330

View file

@ -145,8 +145,8 @@ namespace CodeImp.DoomBuilder.Controls
}
// Arguments
ArgumentInfo[] arginfo = ((t.Action == 0 && ti.Args[0] != null) ? ti.Args : act.Args); //mxd
ArgumentInfo[] stringarginfo = ti.StringArgs;
ArgumentInfo[] arginfo = (t.Action == 0 && ti.Args[0] != null) ? ti.Args : act.Args; //mxd
ArgumentInfo[] stringarginfo = ti.StringArgs[0] != null ? ti.StringArgs : act.StringArgs;
//mxd. ACS script argument names
bool isacsscript = (Array.IndexOf(GZGeneral.ACS_SPECIALS, t.Action) != -1);