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,6 +936,7 @@ void CConsole::DeregisterTempMap(const char *pName)
|
|||
|
||||
void CConsole::DeregisterTempMapAll()
|
||||
{
|
||||
if(m_pTempMapListHeap)
|
||||
m_pTempMapListHeap->Reset();
|
||||
m_pFirstMapEntry = 0;
|
||||
m_pLastMapEntry = 0;
|
||||
|
|
Loading…
Reference in a new issue