checked if m_pDoor was still there

i didn't know where else to delete it so ...
This commit is contained in:
GreYFoXGTi 2010-10-27 01:25:22 +02:00
parent e7d6c67446
commit e051a30787

View file

@ -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;