From f1bf6a6803d8518d3a705843484fc21b9586cce0 Mon Sep 17 00:00:00 2001 From: biwa <6475593+biwa@users.noreply.github.com> Date: Fri, 9 Apr 2021 07:26:15 +0200 Subject: [PATCH] Fixed a crash that happened when a thing isn't inside a sector. Fixes #548 --- Source/Core/Map/Thing.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Core/Map/Thing.cs b/Source/Core/Map/Thing.cs index 7105fb4c..fd37bf52 100755 --- a/Source/Core/Map/Thing.cs +++ b/Source/Core/Map/Thing.cs @@ -283,7 +283,7 @@ namespace CodeImp.DoomBuilder.Map { sector = null; } - if (sectors.Count == 1) + else if (sectors.Count == 1) { sector = sectors[0]; }