(launch_missile): Simplify to avoid compiler warning.

This commit is contained in:
Markus Armbruster 2004-08-28 12:51:04 +00:00
parent baabcc563e
commit 00ba173baa

View file

@ -364,7 +364,7 @@ launch_missile(struct plnstr *pp, int sublaunch)
pr("\t%s sunk!\n", prship(&target_ship)); pr("\t%s sunk!\n", prship(&target_ship));
putship(target_ship.shp_uid, &target_ship); putship(target_ship.shp_uid, &target_ship);
} }
getship(n, &target_ship); getship(target_ship.shp_uid, &target_ship);
if (!target_ship.shp_own) if (!target_ship.shp_own)
pr("%s sunk!\n", prship(&target_ship)); pr("%s sunk!\n", prship(&target_ship));
} }