mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +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)
|
void CCollision::Init(class CLayers *pLayers)
|
||||||
{
|
{
|
||||||
|
if(m_pDoor)
|
||||||
|
{
|
||||||
|
delete m_pDoor;
|
||||||
|
m_pDoor = 0;
|
||||||
|
}
|
||||||
m_pLayers = pLayers;
|
m_pLayers = pLayers;
|
||||||
m_Width = m_pLayers->GameLayer()->m_Width;
|
m_Width = m_pLayers->GameLayer()->m_Width;
|
||||||
m_Height = m_pLayers->GameLayer()->m_Height;
|
m_Height = m_pLayers->GameLayer()->m_Height;
|
||||||
|
|
Loading…
Reference in a new issue