diff --git a/src/graphics/camera.cpp b/src/graphics/camera.cpp index 8f6d6d956..547add4f9 100644 --- a/src/graphics/camera.cpp +++ b/src/graphics/camera.cpp @@ -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 //-----------------------------------------------------------------------------