Make sure the old object is deleted

This commit is contained in:
Learath Lea 2015-01-28 14:17:39 +02:00
parent ace7e8208a
commit c4ab42333d

View file

@ -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();
}
}
}
}