From: Markus Armbruster Date: Mon, 2 Mar 2009 08:06:31 +0000 (+0100) Subject: Fix generation numbers for SAIL X-Git-Tag: hvy-plastic-1.0~4 X-Git-Url: http://git.pond.sub.org/?p=empserver;a=commitdiff_plain;h=bba8db34d0395795f24663d801dfe85531000ecd Fix generation numbers for SAIL fltp_to_list() makes copies without going through ef_read(), and therefore needs to mark them fresh by hand. --- diff --git a/src/lib/update/sail.c b/src/lib/update/sail.c index a1588759e..85570e388 100644 --- a/src/lib/update/sail.c +++ b/src/lib/update/sail.c @@ -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; + ef_mark_fresh(EF_SHIP, &mlp->unit.ship); mlp->mobil = fe->mobil; emp_insque(&mlp->queue, list); }