Fixed a crash that happened when a thing isn't inside a sector. Fixes #548

This commit is contained in:
biwa 2021-04-09 07:26:15 +02:00
parent da935dd8d7
commit f1bf6a6803

View file

@ -283,7 +283,7 @@ namespace CodeImp.DoomBuilder.Map
{
sector = null;
}
if (sectors.Count == 1)
else if (sectors.Count == 1)
{
sector = sectors[0];
}