Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenoit Bolsee <benoit.bolsee@online.be>2008-04-25 01:26:39 +0400
committerBenoit Bolsee <benoit.bolsee@online.be>2008-04-25 01:26:39 +0400
commit9b9359120fdac93b822cfaacf98d0d498cef3887 (patch)
tree911b8c6f433422725de279f1a801ced9be05e7ca /source/gameengine/Ketsji
parent4d1d60e236fa90cd34b99bd06814e65255f9dc91 (diff)
BGE bug: fix a crash at game exit caused by inconsistent controller map after object deletion. The bug became apparent since the memory leaks have been fixed.
Diffstat (limited to 'source/gameengine/Ketsji')
-rw-r--r--source/gameengine/Ketsji/KX_Scene.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/gameengine/Ketsji/KX_Scene.cpp b/source/gameengine/Ketsji/KX_Scene.cpp
index 0fbabe8d6a2..54003284e03 100644
--- a/source/gameengine/Ketsji/KX_Scene.cpp
+++ b/source/gameengine/Ketsji/KX_Scene.cpp
@@ -754,6 +754,7 @@ int KX_Scene::NewRemoveObject(class CValue* gameobj)
{
(*itc)->UnlinkAllSensors();
(*itc)->UnlinkAllActuators();
+ m_logicmgr->RemoveController(*itc);
}
SCA_ActuatorList& actuators = newobj->GetActuators();