Fix generation numbers for SAIL

fltp_to_list() makes copies without going through ef_read(), and
therefore needs to mark them fresh by hand.
This commit is contained in:
Markus Armbruster 2009-03-02 09:06:31 +01:00
parent 20b31defe7
commit bba8db34d0

View file

@ -347,6 +347,7 @@ fltp_to_list(struct fltheadstr *fltp, struct emp_qelem *list)
sp = getshipp(fe->num); sp = getshipp(fe->num);
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 = fe->mobil; mlp->mobil = fe->mobil;
emp_insque(&mlp->queue, list); emp_insque(&mlp->queue, list);
} }