Fix end game window conflicting with ingame menu

Fixes #6311
This commit is contained in:
Oliver Brakmann
2014-08-23 14:49:28 +02:00
parent f0fc63b15d
commit 2f4c81b7c9
5 changed files with 13 additions and 7 deletions

View File

@@ -417,8 +417,11 @@ namespace OpenRA.Widgets
public virtual void RemoveChild(Widget child)
{
Children.Remove(child);
child.Removed();
if (child != null)
{
Children.Remove(child);
child.Removed();
}
}
public virtual void RemoveChildren()