Fixed all gcc 4 warnings in blenkernel. Found 2 potentially harmful
[blender.git] / source / blender / blenkernel / intern / material.c
index 20102ebb6c984accd3a0e995c7412f7aa9185657..2aba911bf54a243c2926de4aacd1770d487f16e6 100644 (file)
@@ -394,7 +394,7 @@ Material *give_current_material(Object *ob, int act)
        Material ***matarar, *ma;
        
        if(ob==NULL) return 0;
-       if(ob->totcol==NULL) return 0;
+       if(ob->totcol==0) return 0;
        
        if(act>ob->totcol) act= ob->totcol;
        else if(act<=0) act= 1;