mirror of
https://git.do.srb2.org/STJr/ZoneBuilder.git
synced 2025-03-12 22:01:31 +00:00
Fixed a crash when highlighting undefined things
This commit is contained in:
parent
84a48ea22a
commit
b17f738f13
1 changed files with 5 additions and 1 deletions
|
@ -138,7 +138,11 @@ namespace CodeImp.DoomBuilder.BuilderModes
|
|||
center = t.Position;
|
||||
|
||||
ThingTypeInfo ti = General.Map.Data.GetThingInfoEx(t.Type);
|
||||
directlinktype = ti.ThingLink;
|
||||
|
||||
if (ti != null)
|
||||
directlinktype = ti.ThingLink;
|
||||
else
|
||||
directlinktype = 0;
|
||||
|
||||
type = UniversalType.ThingTag;
|
||||
tags = new HashSet<int>(new int[] { t.Tag });
|
||||
|
|
Loading…
Reference in a new issue