mirror of
https://git.do.srb2.org/STJr/ZoneBuilder.git
synced 2024-11-10 06:41:49 +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;
|
center = t.Position;
|
||||||
|
|
||||||
ThingTypeInfo ti = General.Map.Data.GetThingInfoEx(t.Type);
|
ThingTypeInfo ti = General.Map.Data.GetThingInfoEx(t.Type);
|
||||||
directlinktype = ti.ThingLink;
|
|
||||||
|
if (ti != null)
|
||||||
|
directlinktype = ti.ThingLink;
|
||||||
|
else
|
||||||
|
directlinktype = 0;
|
||||||
|
|
||||||
type = UniversalType.ThingTag;
|
type = UniversalType.ThingTag;
|
||||||
tags = new HashSet<int>(new int[] { t.Tag });
|
tags = new HashSet<int>(new int[] { t.Tag });
|
||||||
|
|
Loading…
Reference in a new issue