Fixed two uninitialised variables, removed unnecessary #include.

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12017 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
hikerstk
2012-11-20 02:57:21 +00:00
parent 9cb86d4555
commit fe6294d0d4
3 changed files with 5 additions and 2 deletions

View File

@@ -55,7 +55,9 @@ ThreeDAnimation::ThreeDAnimation(const XMLNode &node)
AnimationBase::m_node->getRotation() );
m_hpr = AnimationBase::m_node->getRotation();
}
else
m_hpr = m_init_hpr;
m_body = NULL;
m_motion_state = NULL;
m_collision_shape = NULL;

View File

@@ -57,6 +57,8 @@ SFXManager::SFXManager()
// The sound manager initialises OpenAL
m_initialized = music_manager->initialized();
m_master_gain = UserConfigParams::m_sfx_volume;
// Init position, since it can be used before positionListener is called.
m_position = Vec3(0,0,0);
loadSfx();
if (!sfxAllowed()) return;

View File

@@ -34,7 +34,6 @@ using namespace irr;
#include "utils/string_utils.hpp"
#include <ISceneManager.h>
#include <IMeshManipulator.h>
#include <IMeshSceneNode.h>
// ----------------------------------------------------------------------------