Skip to content
Snippets Groups Projects
Commit 55b8e24b authored by biwa's avatar biwa
Browse files

UDBScript: fixed an issue where the Thing's class getSector method did not...

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
parent bc98a539
Branches
Tags
No related merge requests found
......@@ -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);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment