mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2025-02-16 17:11:28 +00:00
UDBScript: fixed an issue where the Thing's class getSector method did not return null when the thing was not in a sector. Fixes #897
This commit is contained in:
parent
bc98a5391f
commit
55b8e24bd8
1 changed files with 2 additions and 0 deletions
|
@ -515,6 +515,8 @@ namespace CodeImp.DoomBuilder.UDBScript.Wrapper
|
|||
public SectorWrapper getSector()
|
||||
{
|
||||
thing.DetermineSector();
|
||||
if (thing.Sector == null)
|
||||
return null;
|
||||
return new SectorWrapper(thing.Sector);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue