diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2006-10-27 03:34:44 +0400 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2006-10-27 03:34:44 +0400 |
commit | 5376df2689008cde4a20059d4958d30f04d7c92c (patch) | |
tree | 903f1522d03bc39180869ea87c810e18787effe3 /source/blender/blenkernel/intern/material.c | |
parent | 47f579f51422b411a6c94db831660081c52a0275 (diff) |
Fixed all gcc 4 warnings in blenkernel. Found 2 potentially harmful
unintialized variables in the verse code, verse_session.c:451 and
verse_object_node.c:339, those are properly initialized now.
Diffstat (limited to 'source/blender/blenkernel/intern/material.c')
-rw-r--r-- | source/blender/blenkernel/intern/material.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/material.c b/source/blender/blenkernel/intern/material.c index 20102ebb6c9..2aba911bf54 100644 --- a/source/blender/blenkernel/intern/material.c +++ b/source/blender/blenkernel/intern/material.c @@ -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; |