Fix the previous revision.

This commit is contained in:
Markus Armbruster 2006-06-23 06:07:36 +00:00
parent 54bd2587d9
commit 42e7e3e389

View file

@ -283,6 +283,8 @@ produce_sect(int natnum, int etu, int *bp, long p_sect[][2])
if (sp->sct_updated != 0) if (sp->sct_updated != 0)
continue; continue;
np = getnatp(natnum);
if ((sp->sct_type == SCT_CAPIT) && (sp->sct_effic > 60)) { if ((sp->sct_type == SCT_CAPIT) && (sp->sct_effic > 60)) {
p_sect[SCT_CAPIT][0]++; p_sect[SCT_CAPIT][0]++;
p_sect[SCT_CAPIT][1] += etu; p_sect[SCT_CAPIT][1] += etu;
@ -312,8 +314,6 @@ produce_sect(int natnum, int etu, int *bp, long p_sect[][2])
sp->sct_updated = 1; sp->sct_updated = 1;
work = 0; work = 0;
np = getnatp(natnum);
/* do_feed trys to supply. So, we need to enable cacheing /* do_feed trys to supply. So, we need to enable cacheing
here */ here */
bp_enable_cachepath(); bp_enable_cachepath();