Fix generation numbers for autonav

nav_ship() makes copies without going through ef_read(), and therefore
needs to mark them fresh by hand.
This commit is contained in:
Markus Armbruster 2009-04-24 23:52:00 +02:00
parent bdcd59155a
commit 9731e6692a

View file

@ -268,6 +268,7 @@ nav_ship(struct shpstr *sp)
mlp = malloc(sizeof(struct ulist)); mlp = malloc(sizeof(struct ulist));
mlp->chrp = (struct empobj_chr *)(mchr + sp->shp_type); mlp->chrp = (struct empobj_chr *)(mchr + sp->shp_type);
mlp->unit.ship = *sp; mlp->unit.ship = *sp;
ef_mark_fresh(EF_SHIP, &mlp->unit.ship);
mlp->mobil = sp->shp_mobil; mlp->mobil = sp->shp_mobil;
emp_insque(&mlp->queue, &ship_list); emp_insque(&mlp->queue, &ship_list);