comment dead code and fix 2 missing NULL checks (pointer used after NULL check and checking against incorrect pointer before use).

This commit is contained in:
2011-01-22 03:50:09 +00:00
parent f6d54bd1ee
commit 799e9c48c1
10 changed files with 37 additions and 36 deletions

View File

@@ -3823,11 +3823,11 @@ static void direct_link_modifiers(FileData *fd, ListBase *lb)
clmd->sim_parms->reset = 0;
clmd->sim_parms->effector_weights = newdataadr(fd, clmd->sim_parms->effector_weights);
}
if(!clmd->sim_parms->effector_weights)
clmd->sim_parms->effector_weights = BKE_add_effector_weights(NULL);
if(!clmd->sim_parms->effector_weights) {
clmd->sim_parms->effector_weights = BKE_add_effector_weights(NULL);
}
}
}
else if (md->type==eModifierType_Fluidsim) {
FluidsimModifierData *fluidmd = (FluidsimModifierData*) md;