Invalidate FrozenActors that don’t have any sprites. Fixes #4809.

This commit is contained in:
Paul Chote
2014-06-13 21:07:39 +12:00
parent ea276d466d
commit 96477b7c1a
2 changed files with 3 additions and 3 deletions

View File

@@ -116,7 +116,7 @@ namespace OpenRA.Widgets
}
var frozen = world.ScreenMap.FrozenActorsAt(world.RenderPlayer, worldRenderer.Viewport.ViewToWorldPx(Viewport.LastMousePos))
.Where(a => a.TooltipName != null)
.Where(a => a.TooltipName != null && a.IsValid)
.WithHighestSelectionPriority();
if (frozen != null)