]> git.pond.sub.org Git - empserver/blobdiff - src/lib/update/finish.c
Fix stop orders to expire even when the country is broke
[empserver] / src / lib / update / finish.c
index 6ea7b77029c953735efd347930c08677dd76957f..d9eb56e4c43a8ff394a8aa7dddab51d942c2d54c 100644 (file)
@@ -98,13 +98,13 @@ finish_sects(int etu)
 
     logerror("importing...");
     for (n = 0; NULL != (sp = getsectid(n)); n++) {
+       sp->sct_off = 0;
        if (!sp->sct_own)
            continue;
        np = getnatp(sp->sct_own);
        if (np->nat_money < 0)
            continue;
        dodistribute(sp, IMPORT, import_cost[n]);
-       sp->sct_off = 0;
     }
     logerror("done importing\n");