From 15d355521a0a746409a6fa251ec30ff02c1beccd Mon Sep 17 00:00:00 2001 From: Markus Armbruster Date: Sun, 27 Sep 2009 09:20:10 -0400 Subject: [PATCH] Remove superfluous variable ip from bomb() --- src/lib/commands/bomb.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/lib/commands/bomb.c b/src/lib/commands/bomb.c index 66a30e1d..4179ea32 100644 --- a/src/lib/commands/bomb.c +++ b/src/lib/commands/bomb.c @@ -85,7 +85,6 @@ bomb(void) coord tx, ty; coord ax, ay; int ap_to_target; - struct ichrstr *ip; char flightpath[MAX_PATH_LEN]; struct nstr_item ni_bomb; struct nstr_item ni_esc; @@ -122,7 +121,6 @@ bomb(void) (void)pathtoxy(flightpath, &tx, &ty, fcost); pr("target sector is %s\n", xyas(tx, ty, player->cnum)); getsect(tx, ty, &target); - ip = NULL; ap_to_target = strlen(flightpath); if (flightpath[ap_to_target - 1] == 'h') ap_to_target--; @@ -137,7 +135,7 @@ bomb(void) /* * now arm and equip the bombers, transports, whatever. */ - pln_arm(&bomb_list, 2 * ap_to_target, mission, ip); + pln_arm(&bomb_list, 2 * ap_to_target, mission, NULL); if (QEMPTY(&bomb_list)) { pr("No planes could be equipped for the mission.\n"); return RET_FAIL;