mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Make sure the old object is deleted
This commit is contained in:
parent
ace7e8208a
commit
c4ab42333d
|
@ -1555,6 +1555,8 @@ void CClient::ProcessServerPacket(CNetChunk *pPacket)
|
|||
m_MapdownloadTotalsize = MapSize;
|
||||
m_MapdownloadAmount = 0;
|
||||
|
||||
ResetMapDownload();
|
||||
|
||||
if(g_Config.m_ClHttpMapDownload)
|
||||
{
|
||||
char aUrl[256];
|
||||
|
@ -1563,10 +1565,7 @@ void CClient::ProcessServerPacket(CNetChunk *pPacket)
|
|||
Fetcher()->QueueAdd(m_pMapdownloadTask, aUrl, m_aMapdownloadFilename, IStorage::TYPE_SAVE);
|
||||
}
|
||||
else
|
||||
{
|
||||
ResetMapDownload();
|
||||
SendMapRequest();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue