1.7.3 - onRemoveFromScene() callback bug
by Michael Woerister · in Torque Game Builder · 06/21/2008 (7:01 am) · 2 replies
Hey there,
there is a bug in t2dSceneGraph::removeFromScene( t2dSceneObject* pSceneObject2D ). At the end of the method the onRemoveFromScene script callback is triggered like this:
It should be like this:
Otherwise the %sceneGraph parameter in onRemoveFromScene() is just memory garbage.
there is a bug in t2dSceneGraph::removeFromScene( t2dSceneObject* pSceneObject2D ). At the end of the method the onRemoveFromScene script callback is triggered like this:
Con::executef(pSceneObject2D, 2, "onRemoveFromScene", this );
It should be like this:
Con::executef(pSceneObject2D, 2, "onRemoveFromScene", [b]this->getIdString()[/b] );
Otherwise the %sceneGraph parameter in onRemoveFromScene() is just memory garbage.
Torque Owner Rpahut