diff --git a/Client/mods/deathmatch/logic/CClientGUIManager.cpp b/Client/mods/deathmatch/logic/CClientGUIManager.cpp index b2eb23322c3..8b3db9650a8 100644 --- a/Client/mods/deathmatch/logic/CClientGUIManager.cpp +++ b/Client/mods/deathmatch/logic/CClientGUIManager.cpp @@ -43,7 +43,7 @@ void CClientGUIManager::DeleteAll() bool CClientGUIManager::Exists(CClientGUIElement* pGUIElement) { - return m_Elements.Contains(pGUIElement); + return pGUIElement ? m_Elements.Contains(pGUIElement) : false; } bool CClientGUIManager::Exists(CGUIElement* pCGUIElement)