mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-19 14:38:18 +00:00
Merge pull request #2001 from Fudgyking/fix-maplist-crash
Add check before resetting the local rcon map list
This commit is contained in:
commit
4ae94d4745
|
@ -936,7 +936,8 @@ void CConsole::DeregisterTempMap(const char *pName)
|
||||||
|
|
||||||
void CConsole::DeregisterTempMapAll()
|
void CConsole::DeregisterTempMapAll()
|
||||||
{
|
{
|
||||||
m_pTempMapListHeap->Reset();
|
if(m_pTempMapListHeap)
|
||||||
|
m_pTempMapListHeap->Reset();
|
||||||
m_pFirstMapEntry = 0;
|
m_pFirstMapEntry = 0;
|
||||||
m_pLastMapEntry = 0;
|
m_pLastMapEntry = 0;
|
||||||
m_NumMapListEntries = 0;
|
m_NumMapListEntries = 0;
|
||||||
|
|
Loading…
Reference in a new issue