]> git.pond.sub.org Git - empserver/commitdiff
Fix stop orders to expire even when the country is broke
authorMarkus Armbruster <armbru@pond.sub.org>
Tue, 29 Mar 2011 18:09:56 +0000 (20:09 +0200)
committerMarkus Armbruster <armbru@pond.sub.org>
Tue, 12 Apr 2011 19:51:32 +0000 (21:51 +0200)
Broken in commit 8da88626, v4.3.8.

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");