diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-03-03 11:01:11 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-03-03 11:01:11 +0300 |
commit | 57436f3013998ffff24625d5c8bf96e865fbe022 (patch) | |
tree | 090401b6b6220474623b6bc9af489d1b53272344 /source/gameengine/Ketsji/KX_ObjectActuator.cpp | |
parent | 3a2ce2be8337196436a464e4f865bb84d28485a5 (diff) |
fix for own error made r35267.
Diffstat (limited to 'source/gameengine/Ketsji/KX_ObjectActuator.cpp')
-rw-r--r-- | source/gameengine/Ketsji/KX_ObjectActuator.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/gameengine/Ketsji/KX_ObjectActuator.cpp b/source/gameengine/Ketsji/KX_ObjectActuator.cpp index 977e32a4c7f..8c3e25cf3e2 100644 --- a/source/gameengine/Ketsji/KX_ObjectActuator.cpp +++ b/source/gameengine/Ketsji/KX_ObjectActuator.cpp @@ -436,7 +436,7 @@ static int mathutils_obactu_vector_set(BaseMathObject *bmo, int subtype) static int mathutils_obactu_vector_get_index(BaseMathObject *bmo, int subtype, int index) { /* lazy, avoid repeteing the case statement */ - if(!mathutils_obactu_vector_get(bmo, subtype)) + if(mathutils_obactu_vector_get(bmo, subtype) == -1) return -1; return 0; } @@ -446,7 +446,7 @@ static int mathutils_obactu_vector_set_index(BaseMathObject *bmo, int subtype, i float f= bmo->data[index]; /* lazy, avoid repeteing the case statement */ - if(!mathutils_obactu_vector_get(bmo, subtype)) + if(mathutils_obactu_vector_get(bmo, subtype) == -1) return -1; bmo->data[index]= f; |