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/Ketsji/KX_TouchSensor.cpp | |
parent | 8d81e154f60744b49c89ef79ec2f4b0325b1effe (diff) |
unknown property fixed in sensor/actuators
Diffstat (limited to 'source/gameengine/Ketsji/KX_TouchSensor.cpp')
-rw-r--r-- | source/gameengine/Ketsji/KX_TouchSensor.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/gameengine/Ketsji/KX_TouchSensor.cpp b/source/gameengine/Ketsji/KX_TouchSensor.cpp index 5b013e75e4e..7e3904113ab 100644 --- a/source/gameengine/Ketsji/KX_TouchSensor.cpp +++ b/source/gameengine/Ketsji/KX_TouchSensor.cpp @@ -274,10 +274,10 @@ PyObject* KX_TouchSensor::PySetProperty(PyObject* self, if (!prop->IsError()) { m_touchedpropname = nameArg; - prop->Release(); } else { ; /* not found ... */ } + prop->Release(); Py_Return; } @@ -351,8 +351,8 @@ PyObject* KX_TouchSensor::PyGetHitObjectList(PyObject* self, CValue* val = m_colliders->GetValue(i)->FindIdentifier(m_touchedpropname); if (!val->IsError()) { newList->Add(m_colliders->GetValue(i)->AddRef()); - val->Release(); } + val->Release(); } i++; |