From 9731e6692a1d326dcfe4b68daf82cd1572b62aad Mon Sep 17 00:00:00 2001 From: Markus Armbruster Date: Fri, 24 Apr 2009 23:52:00 +0200 Subject: [PATCH] Fix generation numbers for autonav nav_ship() makes copies without going through ef_read(), and therefore needs to mark them fresh by hand. --- src/lib/update/nav_ship.c | 1 + 1 file changed, 1 insertion(+) 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); -- 2.43.0