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:
parent
bdcd59155a
commit
9731e6692a
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue