From ea31b5f39373a25abfef20515c5df8b56718743a Mon Sep 17 00:00:00 2001 From: Paul Chote Date: Sun, 21 Jun 2015 13:07:45 +0100 Subject: [PATCH] Only invalidate metadata when overwriting map. --- OpenRA.Mods.Common/Widgets/Logic/Editor/SaveMapLogic.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OpenRA.Mods.Common/Widgets/Logic/Editor/SaveMapLogic.cs b/OpenRA.Mods.Common/Widgets/Logic/Editor/SaveMapLogic.cs index 40050b7667..399611c5e8 100644 --- a/OpenRA.Mods.Common/Widgets/Logic/Editor/SaveMapLogic.cs +++ b/OpenRA.Mods.Common/Widgets/Logic/Editor/SaveMapLogic.cs @@ -137,7 +137,7 @@ namespace OpenRA.Mods.Common.Widgets.Logic var combinedPath = Platform.ResolvePath(Path.Combine(directoryDropdown.Text, filename.Text + fileTypes[typeDropdown.Text])); // Invalidate the old map metadata - if (map.Uid != null) + if (map.Uid != null && combinedPath == map.Path) Game.ModData.MapCache[map.Uid].Invalidate(); map.Save(combinedPath);