Fix uninitialized variables, fixes #2567

This commit is contained in:
auria.mg 2016-07-12 19:39:44 -04:00
parent 19acdad9b4
commit 1463cf9344
2 changed files with 2 additions and 0 deletions

View File

@ -115,6 +115,7 @@ void Camera::resetAllCameras()
Camera::Camera(int camera_index, AbstractKart* kart) : m_kart(NULL)
{
m_mode = CM_NORMAL;
m_type = CameraType::CM_TYPE_NORMAL;
m_index = camera_index;
m_original_kart = kart;
m_camera = irr_driver->addCameraSceneNode();

View File

@ -61,6 +61,7 @@ CutsceneWorld::CutsceneWorld() : World()
m_play_track_intro_sound = false;
m_play_ready_set_go_sounds = false;
m_fade_duration = 1.0f;
m_camera = NULL;
} // CutsceneWorld
//-----------------------------------------------------------------------------