diff options
author | Benoit Bolsee <benoit.bolsee@online.be> | 2008-04-20 01:15:37 +0400 |
---|---|---|
committer | Benoit Bolsee <benoit.bolsee@online.be> | 2008-04-20 01:15:37 +0400 |
commit | bdf5c0689b1617118cd7f327139a928ec04c47bf (patch) | |
tree | cb2e5b68672b46886372405b3bc52cd82796a502 /source/gameengine/Ketsji | |
parent | b0049e608859bd129bb5c13fecdd161811741185 (diff) |
BGE bug fix: crash at exit when object with Radar/Near sensor has debug properties
Diffstat (limited to 'source/gameengine/Ketsji')
-rw-r--r-- | source/gameengine/Ketsji/KX_Scene.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/source/gameengine/Ketsji/KX_Scene.cpp b/source/gameengine/Ketsji/KX_Scene.cpp index 1758b3bb955..0fbabe8d6a2 100644 --- a/source/gameengine/Ketsji/KX_Scene.cpp +++ b/source/gameengine/Ketsji/KX_Scene.cpp @@ -178,7 +178,11 @@ KX_Scene::KX_Scene(class SCA_IInputDevice* keyboarddevice, KX_Scene::~KX_Scene() { - + // The release of debug properties used to be in SCA_IScene::~SCA_IScene + // It's still there but we remove all properties here otherwise some + // reference might be hanging and causing late release of objects + RemoveAllDebugProperties(); + while (GetRootParentList()->GetCount() > 0) { KX_GameObject* parentobj = (KX_GameObject*) GetRootParentList()->GetValue(0); |