Fix potentiel crash

This commit is contained in:
Marianne Gagnon 2014-08-14 19:54:35 -04:00
parent c425e7e153
commit 0a95344a01

View File

@ -94,6 +94,9 @@ Camera::~Camera()
{
if(m_rain) delete m_rain;
irr_driver->removeCameraSceneNode(m_camera);
if (s_active_camera == this)
s_active_camera = NULL;
} // ~Camera
//-----------------------------------------------------------------------------