From 5e42554b2b2ffcf3c420d5c4c3cfbaaa513d7f90 Mon Sep 17 00:00:00 2001 From: ScottNZ Date: Wed, 25 Dec 2013 12:52:07 +1300 Subject: [PATCH] Fix legacy map importer NRE. Closes #4366 --- OpenRA.Editor/LegacyMapImporter.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/OpenRA.Editor/LegacyMapImporter.cs b/OpenRA.Editor/LegacyMapImporter.cs index 97cab4b672..f1dab220e1 100644 --- a/OpenRA.Editor/LegacyMapImporter.cs +++ b/OpenRA.Editor/LegacyMapImporter.cs @@ -146,6 +146,8 @@ namespace OpenRA.Editor map.MapResources = Lazy.New(() => new TileReference[mapSize, mapSize]); map.MapTiles = Lazy.New(() => new TileReference[mapSize, mapSize]); + map.Options = new MapOptions(); + if (legacyMapFormat == IniMapFormat.RedAlert) { UnpackRATileData(ReadPackedSection(file.GetSection("MapPack")));