fix compiler warnings - deja vu all over again.

buttons_object.c:2326: warning: too many arguments for format 
buttonns_object.c:3829: warning: ordered comparison of pointer with integer zero
This commit is contained in:
Stephen Swaney
2008-04-08 16:50:20 +00:00
parent 61bbccaee7
commit daeedc1144

View File

@@ -2323,7 +2323,7 @@ void do_object_panels(unsigned short event)
BLI_addtail(&ob->particlesystem,psys);
md= modifier_new(eModifierType_ParticleSystem);
sprintf(md->name, "FluidParticleSystem", BLI_countlist(&ob->particlesystem));
sprintf(md->name, "FluidParticleSystem" );
psmd= (ParticleSystemModifierData*) md;
psmd->psys=psys;
BLI_addtail(&ob->modifiers, md);
@@ -3826,7 +3826,7 @@ static void sb_clear_cache(void *ob_v, void *actsoft_v)
Object *ob = ob_v;
short *actsoft = actsoft_v;
if(actsoft >= 0)
if(actsoft)
clear_particles_from_cache(ob, BLI_findlink(&ob->particlesystem, *actsoft), CFRA);
else
softbody_clear_cache(ob, CFRA);