From 00ba173baa473483c1bd5ead1635b9baa4f2579c Mon Sep 17 00:00:00 2001 From: Markus Armbruster Date: Sat, 28 Aug 2004 12:51:04 +0000 Subject: [PATCH] (launch_missile): Simplify to avoid compiler warning. --- src/lib/commands/laun.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/commands/laun.c b/src/lib/commands/laun.c index f4653117..93d8d899 100644 --- a/src/lib/commands/laun.c +++ b/src/lib/commands/laun.c @@ -364,7 +364,7 @@ launch_missile(struct plnstr *pp, int sublaunch) pr("\t%s sunk!\n", prship(&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) pr("%s sunk!\n", prship(&target_ship)); }