Hacky fix for map upgrading

This commit is contained in:
Paul Chote
2011-02-17 22:31:07 +13:00
parent 89b7f3d725
commit 0bc8d37bdf

View File

@@ -46,6 +46,11 @@ namespace OpenRA.Editor
foreach (var path in ModData.FindMapsIn(MapFolderPath))
{
var map = new Map(path);
// Touch the lazy bits to initialize them
var foo = map.Actors.Value.Count;
foo = map.Smudges.Value.Count;
var bar = map.MapResources.Value[0,0];
var baz = map.MapTiles.Value[0,0];
map.Save(path);
}
}