mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2025-02-22 11:51:42 +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>
|
/// <returns>True if the sector has UDMF fiels associations</returns>
|
||||||
public static bool SectorHasUDMFFieldAssociations(Sector sector)
|
public static bool SectorHasUDMFFieldAssociations(Sector sector)
|
||||||
{
|
{
|
||||||
|
if (sector == null || sector.IsDisposed || sector.Fields == null)
|
||||||
|
return false;
|
||||||
|
|
||||||
foreach (UniversalFieldInfo ufi in General.Map.Config.SectorFields)
|
foreach (UniversalFieldInfo ufi in General.Map.Config.SectorFields)
|
||||||
{
|
{
|
||||||
if (sector.Fields.ContainsKey(ufi.Name))
|
if (sector.Fields.ContainsKey(ufi.Name))
|
||||||
|
|
Loading…
Reference in a new issue