diff options
author | Mitchell Stokes <mogurijin@gmail.com> | 2011-07-30 01:58:31 +0400 |
---|---|---|
committer | Mitchell Stokes <mogurijin@gmail.com> | 2011-07-30 01:58:31 +0400 |
commit | 387439390d2651c6eaea9deb3ad38a250b579e7b (patch) | |
tree | 20df7c1b89208c56a3ad4975d698cb8cd562e09f /source/gameengine | |
parent | 29f214f7f31bf7490b0c2795ad716ce5a9dc1818 (diff) |
BGE Animations: Fixing some warnings from GCC about initialization order.
Diffstat (limited to 'source/gameengine')
-rw-r--r-- | source/gameengine/Ketsji/BL_Action.cpp | 16 | ||||
-rw-r--r-- | source/gameengine/Ketsji/BL_ActionManager.cpp | 2 | ||||
-rw-r--r-- | source/gameengine/Ketsji/KX_GameObject.cpp | 4 |
3 files changed, 12 insertions, 10 deletions
diff --git a/source/gameengine/Ketsji/BL_Action.cpp b/source/gameengine/Ketsji/BL_Action.cpp index 6fe989296fd..caffd3cd8ca 100644 --- a/source/gameengine/Ketsji/BL_Action.cpp +++ b/source/gameengine/Ketsji/BL_Action.cpp @@ -49,24 +49,24 @@ extern "C" { BL_Action::BL_Action(class KX_GameObject* gameobj) : + m_action(NULL), + m_pose(NULL), + m_blendpose(NULL), + m_blendinpose(NULL), + m_ptrrna(NULL), + m_sg_contr(NULL), m_obj(gameobj), m_startframe(0.f), m_endframe(0.f), - m_blendin(0.f), - m_playmode(0), m_endtime(0.f), m_localtime(0.f), + m_blendin(0.f), m_blendframe(0.f), m_blendstart(0.f), m_speed(0.f), m_priority(0), + m_playmode(0), m_ipo_flags(0), - m_pose(NULL), - m_blendpose(NULL), - m_blendinpose(NULL), - m_sg_contr(NULL), - m_ptrrna(NULL), - m_action(NULL), m_done(true) { if (m_obj->GetGameObjectType() == SCA_IObject::OBJ_ARMATURE) diff --git a/source/gameengine/Ketsji/BL_ActionManager.cpp b/source/gameengine/Ketsji/BL_ActionManager.cpp index 0586c515c65..74a98b11024 100644 --- a/source/gameengine/Ketsji/BL_ActionManager.cpp +++ b/source/gameengine/Ketsji/BL_ActionManager.cpp @@ -59,6 +59,8 @@ struct bAction *BL_ActionManager::GetCurrentAction(short layer) { if (m_layers[layer]) return m_layers[layer]->GetAction(); + + return NULL; } bool BL_ActionManager::PlayAction(const char* name, diff --git a/source/gameengine/Ketsji/KX_GameObject.cpp b/source/gameengine/Ketsji/KX_GameObject.cpp index 4d841e78d70..91e62442646 100644 --- a/source/gameengine/Ketsji/KX_GameObject.cpp +++ b/source/gameengine/Ketsji/KX_GameObject.cpp @@ -109,8 +109,8 @@ KX_GameObject::KX_GameObject( m_pGraphicController(NULL), m_xray(false), m_pHitObject(NULL), - m_isDeformable(false), - m_actionManager(NULL) + m_actionManager(NULL), + m_isDeformable(false) #ifdef WITH_PYTHON , m_attr_dict(NULL) #endif |