From 42e7e3e3893e07629c3f67ca88e7ea9c83b828e2 Mon Sep 17 00:00:00 2001 From: Markus Armbruster Date: Fri, 23 Jun 2006 06:07:36 +0000 Subject: [PATCH] Fix the previous revision. --- src/lib/update/sect.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/update/sect.c b/src/lib/update/sect.c index 91a6a54e..f25f7e5a 100644 --- a/src/lib/update/sect.c +++ b/src/lib/update/sect.c @@ -283,6 +283,8 @@ produce_sect(int natnum, int etu, int *bp, long p_sect[][2]) if (sp->sct_updated != 0) continue; + np = getnatp(natnum); + if ((sp->sct_type == SCT_CAPIT) && (sp->sct_effic > 60)) { p_sect[SCT_CAPIT][0]++; 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; work = 0; - np = getnatp(natnum); - /* do_feed trys to supply. So, we need to enable cacheing here */ bp_enable_cachepath();