From 330982310cbb130a8f0d32fa8fb26fb2030d5058 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20Mail=C3=A4nder?= Date: Sat, 6 Jun 2015 12:49:17 +0200 Subject: [PATCH] avoid a null reference exception --- OpenRA.Game/Map/Map.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OpenRA.Game/Map/Map.cs b/OpenRA.Game/Map/Map.cs index 142d169a37..df8e06f285 100644 --- a/OpenRA.Game/Map/Map.cs +++ b/OpenRA.Game/Map/Map.cs @@ -484,7 +484,7 @@ namespace OpenRA } // Saving the map to a new location - if (toPath != Path) + if (toPath != Path || Container == null) { Path = toPath;