Fix legacy map importer NRE. Closes #4366

This commit is contained in:
ScottNZ
2013-12-25 12:52:07 +13:00
parent 35e906c606
commit 5e42554b2b

View File

@@ -146,6 +146,8 @@ namespace OpenRA.Editor
map.MapResources = Lazy.New(() => new TileReference<byte, byte>[mapSize, mapSize]);
map.MapTiles = Lazy.New(() => new TileReference<ushort, byte>[mapSize, mapSize]);
map.Options = new MapOptions();
if (legacyMapFormat == IniMapFormat.RedAlert)
{
UnpackRATileData(ReadPackedSection(file.GetSection("MapPack")));