- fix for BGE warnings
[blender.git] / source / gameengine / Converter / KX_IpoConvert.cpp
index d3a2e1a9ba461d3f18729f3153fe21cefe5c0ea3..848fcfcdaa0243c0ebe819da61dd6f4b31e98d46 100644 (file)
@@ -175,7 +175,7 @@ void BL_ConvertIpos(struct Object* blenderobject,KX_GameObject* gameobj,KX_Blend
                        KX_ObColorIpoSGController* ipocontr_obcol=NULL;
                        
                        for(int i=0; i<4; i++) {
-                               if (interp = adtList->GetScalarInterpolator("color", i)) {
+                               if ((interp = adtList->GetScalarInterpolator("color", i))) {
                                        if (!ipocontr_obcol) {
                                                ipocontr_obcol = new KX_ObColorIpoSGController();
                                                gameobj->GetSGNode()->AddSGController(ipocontr_obcol);