From: Markus Armbruster Date: Fri, 24 Apr 2009 21:52:00 +0000 (+0200) Subject: Fix generation numbers for autonav X-Git-Tag: hvy-plastic-1.5^0 X-Git-Url: http://git.pond.sub.org/?p=empserver;a=commitdiff_plain;h=9731e6692a1d326dcfe4b68daf82cd1572b62aad Fix generation numbers for autonav nav_ship() makes copies without going through ef_read(), and therefore needs to mark them fresh by hand. --- diff --git a/src/lib/update/nav_ship.c b/src/lib/update/nav_ship.c index d57ed6aac..bb44bedb6 100644 --- a/src/lib/update/nav_ship.c +++ b/src/lib/update/nav_ship.c @@ -268,6 +268,7 @@ nav_ship(struct shpstr *sp) mlp = malloc(sizeof(struct ulist)); mlp->chrp = (struct empobj_chr *)(mchr + sp->shp_type); mlp->unit.ship = *sp; + ef_mark_fresh(EF_SHIP, &mlp->unit.ship); mlp->mobil = sp->shp_mobil; emp_insque(&mlp->queue, &ship_list);