From 0bc8d37bdfc969c75f137b16b69ab560ff5e26e4 Mon Sep 17 00:00:00 2001 From: Paul Chote Date: Thu, 17 Feb 2011 22:31:07 +1300 Subject: [PATCH] Hacky fix for map upgrading --- OpenRA.Editor/Program.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/OpenRA.Editor/Program.cs b/OpenRA.Editor/Program.cs index 7c4b90af5d..5dd1cfca1b 100644 --- a/OpenRA.Editor/Program.cs +++ b/OpenRA.Editor/Program.cs @@ -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); } }