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:
biwa 2023-06-18 16:26:01 +02:00
parent bc98a5391f
commit 55b8e24bd8

View file

@ -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);
}