Merge pull request #2001 from Fudgyking/fix-maplist-crash

Add check before resetting the local rcon map list
This commit is contained in:
oy 2019-01-27 13:32:32 +01:00 committed by GitHub
commit 4ae94d4745
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -936,7 +936,8 @@ void CConsole::DeregisterTempMap(const char *pName)
void CConsole::DeregisterTempMapAll()
{
m_pTempMapListHeap->Reset();
if(m_pTempMapListHeap)
m_pTempMapListHeap->Reset();
m_pFirstMapEntry = 0;
m_pLastMapEntry = 0;
m_NumMapListEntries = 0;