diff --git a/src/lib/subs/plnsub.c b/src/lib/subs/plnsub.c index 226edfe6..5fe09e19 100644 --- a/src/lib/subs/plnsub.c +++ b/src/lib/subs/plnsub.c @@ -955,7 +955,7 @@ could_be_on_ship(struct plnstr *pp, struct shpstr *sp) struct shpstr ship; ship = *sp; - sp->shp_nplane = sp->shp_nchoppers = sp->shp_nxlight = 0; + ship.shp_nplane = ship.shp_nchoppers = ship.shp_nxlight = 0; return fit_plane_on_ship(pp, &ship); }