From d939d5183cd357a3fdc867667ebd66723503d5f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20Mail=C3=A4nder?= Date: Thu, 16 Jan 2014 20:58:18 +0100 Subject: [PATCH] fixed a crash in the actor border rendering --- OpenRA.Editor/Surface.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OpenRA.Editor/Surface.cs b/OpenRA.Editor/Surface.cs index d5c235a99c..eb3feaa134 100644 --- a/OpenRA.Editor/Surface.cs +++ b/OpenRA.Editor/Surface.cs @@ -491,7 +491,7 @@ namespace OpenRA.Editor if (currentTool == null) { var x = Map.Actors.Value.FirstOrDefault(a => a.Value.Location() == GetBrushLocation()); - if (x.Key != null) + if (x.Key != null && actorTemplates.ContainsKey(x.Value.Type)) DrawActorBorder(e.Graphics, x.Value.Location(), actorTemplates[x.Value.Type]); } }