mirror of
https://github.com/ddnet/ddnet.git
synced 2024-09-20 09:34:19 +00:00
checked if m_pDoor was still there
i didn't know where else to delete it so ...
This commit is contained in:
parent
e7d6c67446
commit
e051a30787
|
@ -33,6 +33,11 @@ void CCollision::Dest()
|
|||
|
||||
void CCollision::Init(class CLayers *pLayers)
|
||||
{
|
||||
if(m_pDoor)
|
||||
{
|
||||
delete m_pDoor;
|
||||
m_pDoor = 0;
|
||||
}
|
||||
m_pLayers = pLayers;
|
||||
m_Width = m_pLayers->GameLayer()->m_Width;
|
||||
m_Height = m_pLayers->GameLayer()->m_Height;
|
||||
|
|
Loading…
Reference in a new issue