Skip to content

Commit 1e1ced1

Browse files
committed
Fix bug where overlay land type was reset if it was not defined in all sections where overlay type information was parsed from
1 parent 37abb95 commit 1e1ced1

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

src/TSMapEditor/Initialization/Initializer.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -217,8 +217,6 @@ private static void InitInfantryArtConfig(IMap map, AbstractObject obj, IniFile
217217

218218
private static void InitOverlayType(INIDefineable obj, IniFile rulesIni, IniSection section)
219219
{
220-
var overlayType = (OverlayType)obj;
221-
overlayType.Land = (LandType)Enum.Parse(typeof(LandType), section.GetStringValue("Land", LandType.Clear.ToString()));
222220
}
223221

224222
private static void InitTerrainType(INIDefineable obj, IniFile rulesIni, IniSection section)

0 commit comments

Comments
 (0)