svn merge -r 21041:21301 https://svn.blender.org/svnroot/bf-blender/branches/blender2...
[blender.git] / source / gameengine / GameLogic / SCA_LogicManager.cpp
index 832712881540478cb9ae962d8686223a77e47d2e..b782c6dfb93a567c6b1f5e0430a64170f0eca065 100644 (file)
@@ -307,6 +307,7 @@ void SCA_LogicManager::AddTriggeredController(SCA_IController* controller, SCA_I
        controller->Activate(m_triggeredControllerSet);
        // so that the controller knows which sensor has activited it
        // only needed for python controller
+       // Note that this is safe even if the controller is subclassed.
        if (controller->GetType() == &SCA_PythonController::Type)
        {
                SCA_PythonController* pythonController = (SCA_PythonController*)controller;