mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2024-11-22 03:41:47 +00:00
Prevent crash when getting a new tag if a regular tag number is also used as a trigger tag
This commit is contained in:
parent
77c66deed5
commit
0fa960c868
1 changed files with 4 additions and 1 deletions
|
@ -31,6 +31,8 @@ using CodeImp.DoomBuilder.Types;
|
|||
using CodeImp.DoomBuilder.Windows;
|
||||
using CodeImp.DoomBuilder.VisualModes;
|
||||
using System.Diagnostics;
|
||||
using static System.Windows.Forms.VisualStyles.VisualStyleElement;
|
||||
|
||||
|
||||
#endregion
|
||||
|
||||
|
@ -3840,7 +3842,8 @@ namespace CodeImp.DoomBuilder.Map
|
|||
}
|
||||
// SRB2 also has separate trigger tag field
|
||||
int triggertag = sectors[i].Fields.GetValue("triggertag", 0);
|
||||
if (triggertag > 0) usedtags.Add(triggertag, false);
|
||||
if (triggertag == 0) continue;
|
||||
if (!usedtags.ContainsKey(triggertag)) usedtags.Add(triggertag, false);
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue