BGE Py API, mistake when redoing set action as a static function.
authorCampbell Barton <ideasman42@gmail.com>
Sat, 4 Apr 2009 11:02:13 +0000 (11:02 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Sat, 4 Apr 2009 11:02:13 +0000 (11:02 +0000)
source/gameengine/Converter/BL_ActionActuator.cpp
source/gameengine/Converter/BL_ShapeActionActuator.cpp

index b7a961d6a9d3b7909f05f60a3fd3dd97ee3f3849..46ad344c5ddd2cd6a0a0a66af616124ca710f83a 100644 (file)
@@ -1073,7 +1073,7 @@ int BL_ActionActuator::pyattr_set_action(void *self_v, const KX_PYATTRIBUTE_DEF
        
        if (val != "")
        {
-               (bAction*)SCA_ILogicBrick::m_sCurrentLogicManager->GetActionByName(val);
+               action= (bAction*)SCA_ILogicBrick::m_sCurrentLogicManager->GetActionByName(val);
                if (!action)
                {
                        PyErr_SetString(PyExc_ValueError, "action not found!");
index 3c0ce0918f273ffa6a030dc8697a4f0f00d83215..a6dbf088ee3f8f421df5de10e8d34e1318a8967f 100644 (file)
@@ -904,7 +904,7 @@ int BL_ShapeActionActuator::pyattr_set_action(void *self_v, const KX_PYATTRIBUTE
        
        if (val != "")
        {
-               (bAction*)SCA_ILogicBrick::m_sCurrentLogicManager->GetActionByName(val);
+               action= (bAction*)SCA_ILogicBrick::m_sCurrentLogicManager->GetActionByName(val);
                if (action==NULL)
                {
                        PyErr_SetString(PyExc_ValueError, "action not found!");