]> git.pond.sub.org Git - empserver/commitdiff
Fix generation numbers for SAIL
authorMarkus Armbruster <armbru@pond.sub.org>
Mon, 2 Mar 2009 08:06:31 +0000 (09:06 +0100)
committerMarkus Armbruster <armbru@pond.sub.org>
Tue, 10 Mar 2009 14:27:52 +0000 (15:27 +0100)
fltp_to_list() makes copies without going through ef_read(), and
therefore needs to mark them fresh by hand.

src/lib/update/sail.c

index a1588759e872e557e5962bea9f7197d30bc011d9..85570e388b107a8f8417420d0c73eb6b250951e3 100644 (file)
@@ -347,6 +347,7 @@ fltp_to_list(struct fltheadstr *fltp, struct emp_qelem *list)
        sp = getshipp(fe->num);
        mlp->chrp = (struct empobj_chr *)(mchr + sp->shp_type);
        mlp->unit.ship = *sp;
        sp = getshipp(fe->num);
        mlp->chrp = (struct empobj_chr *)(mchr + sp->shp_type);
        mlp->unit.ship = *sp;
+       ef_mark_fresh(EF_SHIP, &mlp->unit.ship);
        mlp->mobil = fe->mobil;
        emp_insque(&mlp->queue, list);
     }
        mlp->mobil = fe->mobil;
        emp_insque(&mlp->queue, list);
     }