(shp_nav_one_sector): When shp_interdict() removed the second ship in

a sector, interdiction loop followed dangling pointer and crashed.
Simplify & fix.
(mlist): Member done no longer used, remove.
This commit is contained in:
Markus Armbruster 2005-03-21 21:05:08 +00:00
parent 1c3eead016
commit 19a80f13c4
2 changed files with 19 additions and 23 deletions

View file

@ -191,7 +191,6 @@ struct mlist {
struct mchrstr *mcp; /* pointer to desc of ship */
struct shpstr ship; /* struct ship */
double mobil; /* how much mobility the ship has left */
int done; /* has this ship been interdicted yet? */
};
#define SHP_DEF(b, t) (t ? (b * (logx((double)t, (double)40.0) < 1.0 ? 1.0 : \