Only invalidate metadata when overwriting map.

This commit is contained in:
Paul Chote
2015-06-21 13:07:45 +01:00
parent 9e18d3cceb
commit ea31b5f393

View File

@@ -137,7 +137,7 @@ namespace OpenRA.Mods.Common.Widgets.Logic
var combinedPath = Platform.ResolvePath(Path.Combine(directoryDropdown.Text, filename.Text + fileTypes[typeDropdown.Text])); var combinedPath = Platform.ResolvePath(Path.Combine(directoryDropdown.Text, filename.Text + fileTypes[typeDropdown.Text]));
// Invalidate the old map metadata // Invalidate the old map metadata
if (map.Uid != null) if (map.Uid != null && combinedPath == map.Path)
Game.ModData.MapCache[map.Uid].Invalidate(); Game.ModData.MapCache[map.Uid].Invalidate();
map.Save(combinedPath); map.Save(combinedPath);