Merge pull request #4367 from ScottNZ/editor

Fix legacy map importer NRE. Closes #4366
This commit is contained in:
Matthias Mailänder
2013-12-25 11:23:15 -08:00

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")));