patch/bugfix [#32006] Fix for Collision Sensor - R6025 pure virtual function call...
authorDalai Felinto <dfelinto@gmail.com>
Sun, 19 Aug 2012 20:45:34 +0000 (20:45 +0000)
committerDalai Felinto <dfelinto@gmail.com>
Sun, 19 Aug 2012 20:45:34 +0000 (20:45 +0000)
source/gameengine/Ketsji/KX_GameObject.cpp

index 04a806dfd92cd7767a3622bf421ffdca855b95ed..3818cef7d6e8d646a806d649b05b651a33fb142b 100644 (file)
@@ -1688,7 +1688,8 @@ PyObject* KX_GameObject::PyReplaceMesh(PyObject* args)
 
 PyObject* KX_GameObject::PyEndObject()
 {
-       KX_Scene *scene = KX_GetActiveScene();
+       SG_Node* node = this->GetSGNode();
+       KX_Scene* scene = static_cast<KX_Scene*>(node->GetSGClientInfo());
        
        scene->DelayedRemoveObject(this);