mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2025-02-20 19:02:12 +00:00
Sectors Mode: fixed a crash when joining sectors. Fixes #539
This commit is contained in:
parent
ccfafec7d8
commit
0bd049b29b
1 changed files with 3 additions and 0 deletions
|
@ -856,6 +856,9 @@ namespace CodeImp.DoomBuilder.BuilderModes
|
|||
/// <returns>True if the sector has UDMF fiels associations</returns>
|
||||
public static bool SectorHasUDMFFieldAssociations(Sector sector)
|
||||
{
|
||||
if (sector == null || sector.IsDisposed || sector.Fields == null)
|
||||
return false;
|
||||
|
||||
foreach (UniversalFieldInfo ufi in General.Map.Config.SectorFields)
|
||||
{
|
||||
if (sector.Fields.ContainsKey(ufi.Name))
|
||||
|
|
Loading…
Reference in a new issue