mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Pointers should be set to NULL
This commit is contained in:
parent
389b432758
commit
568b5e5603
|
@ -313,7 +313,7 @@ CClient::CClient() : m_DemoPlayer(&m_SnapshotDelta)
|
|||
// map download
|
||||
m_aMapdownloadFilename[0] = 0;
|
||||
m_aMapdownloadName[0] = 0;
|
||||
m_pMapdownloadTask = 0;
|
||||
m_pMapdownloadTask = NULL;
|
||||
m_MapdownloadFile = 0;
|
||||
m_MapdownloadChunk = 0;
|
||||
m_MapdownloadCrc = 0;
|
||||
|
@ -2174,7 +2174,7 @@ void CClient::ResetMapDownload()
|
|||
{
|
||||
m_pMapdownloadTask->Abort();
|
||||
delete m_pMapdownloadTask;
|
||||
m_pMapdownloadTask = 0;
|
||||
m_pMapdownloadTask = NULL;
|
||||
}
|
||||
m_MapdownloadFile = 0;
|
||||
m_MapdownloadAmount = 0;
|
||||
|
@ -2514,7 +2514,7 @@ void CClient::Update()
|
|||
else if(m_pMapdownloadTask->State() == CFetchTask::STATE_ABORTED)
|
||||
{
|
||||
delete m_pMapdownloadTask;
|
||||
m_pMapdownloadTask = 0;
|
||||
m_pMapdownloadTask = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue