corrections from an article about using PVS-Studio static checker with blender - http://www.viva64.com/en/b/0145/

This commit is contained in:
2012-04-23 15:54:43 +00:00
parent 9d40c3046b
commit bfcdd45245
4 changed files with 5 additions and 5 deletions

View File

@@ -603,7 +603,7 @@ void rna_object_vcollayer_name_set(PointerRNA *ptr, const char *value, char *res
static int rna_Object_active_material_index_get(PointerRNA *ptr)
{
Object *ob = (Object*)ptr->id.data;
return MAX2(ob->actcol-1, 0);
return MAX2(ob->actcol - 1, 0);
}
static void rna_Object_active_material_index_set(PointerRNA *ptr, int value)