diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-08-27 05:37:47 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-08-27 05:37:47 +0400 |
commit | 974a06823e3a2ac740f93243cefb0db6b5582dcb (patch) | |
tree | 733d12b56d595d58bf9b1f4421a1b23a9fd1bdd8 /source/gameengine | |
parent | 2311e624d7717f1123abcf91882830e5dd841669 (diff) |
bge py api XK_GameObject.linVelocityMin was returning linVelocityMax.
Diffstat (limited to 'source/gameengine')
-rw-r--r-- | source/gameengine/Ketsji/KX_GameObject.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/gameengine/Ketsji/KX_GameObject.cpp b/source/gameengine/Ketsji/KX_GameObject.cpp index 7ca8e7e3b52..74652877e48 100644 --- a/source/gameengine/Ketsji/KX_GameObject.cpp +++ b/source/gameengine/Ketsji/KX_GameObject.cpp @@ -1839,7 +1839,7 @@ PyObject* KX_GameObject::pyattr_get_lin_vel_min(void *self_v, const KX_PYATTRIBU { KX_GameObject* self= static_cast<KX_GameObject*>(self_v); KX_IPhysicsController *spc = self->GetPhysicsController(); - return PyFloat_FromDouble(spc ? spc->GetLinVelocityMax() : 0.0f); + return PyFloat_FromDouble(spc ? spc->GetLinVelocityMin() : 0.0f); } int KX_GameObject::pyattr_set_lin_vel_min(void *self_v, const KX_PYATTRIBUTE_DEF *attrdef, PyObject *value) |