Fix generation numbers for autonav hvy-plastic hvy-plastic-1.5
authorMarkus Armbruster <armbru@pond.sub.org>
Fri, 24 Apr 2009 21:52:00 +0000 (23:52 +0200)
committerMarkus Armbruster <armbru@pond.sub.org>
Fri, 24 Apr 2009 21:52:00 +0000 (23:52 +0200)
nav_ship() makes copies without going through ef_read(), and therefore
needs to mark them fresh by hand.

src/lib/update/nav_ship.c

index d57ed6aac4e1bef75fa515cd05efdc6fd3efa624..bb44bedb6fd0ca8e4410b74f38638e5fb08d7eda 100644 (file)
@@ -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);