Change one more instance of code assuming 5 arguments instead of 10

This commit is contained in:
spherallic 2023-09-15 16:44:56 +02:00
parent e8eb7ec1f0
commit fb5d404e0c

View file

@ -677,7 +677,7 @@ namespace CodeImp.DoomBuilder.BuilderModes
if (BuilderPlug.Me.EventLineLabelStyle == 0 || General.Map.Config.LineTagIndicatesSectors)
return description;
for (int i=0; i < 5; i++)
for (int i=0; i < Linedef.NUM_ARGS; i++)
{
if(lai.Args[i].Used)
{
@ -706,7 +706,7 @@ namespace CodeImp.DoomBuilder.BuilderModes
List<string> argdescription = new List<string>();
ThingTypeInfo ti = General.Map.Data.GetThingInfoEx(((Thing)se).Type);
for (int i = 0; i < 5; i++)
for (int i = 0; i < Thing.NUM_ARGS; i++)
{
if (ti.Args[i].Used)
{