diff options
author | Benoit Bolsee <benoit.bolsee@online.be> | 2008-03-01 22:05:41 +0300 |
---|---|---|
committer | Benoit Bolsee <benoit.bolsee@online.be> | 2008-03-01 22:05:41 +0300 |
commit | 407b2d334d2facab83f847045aca45cc9ab49cde (patch) | |
tree | 6eb787af4645ba4f6ac1a36a7489cfe90efdd748 /source/gameengine/GameLogic/SCA_IObject.cpp | |
parent | 8d81e154f60744b49c89ef79ec2f4b0325b1effe (diff) |
unknown property fixed in sensor/actuators
Diffstat (limited to 'source/gameengine/GameLogic/SCA_IObject.cpp')
-rw-r--r-- | source/gameengine/GameLogic/SCA_IObject.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source/gameengine/GameLogic/SCA_IObject.cpp b/source/gameengine/GameLogic/SCA_IObject.cpp index b1d210fd1c1..8971135ecda 100644 --- a/source/gameengine/GameLogic/SCA_IObject.cpp +++ b/source/gameengine/GameLogic/SCA_IObject.cpp @@ -55,7 +55,9 @@ SCA_IObject::~SCA_IObject() SCA_SensorList::iterator its; for (its = m_sensors.begin(); !(its == m_sensors.end()); ++its) { - ((CValue*)(*its))->Release(); + //Use Delete for sensor to ensure proper cleaning + (*its)->Delete(); + //((CValue*)(*its))->Release(); } SCA_ControllerList::iterator itc; for (itc = m_controllers.begin(); !(itc == m_controllers.end()); ++itc) |