diff --git a/src/lib/commands/para.c b/src/lib/commands/para.c index 869b38ef..a2dee2c5 100644 --- a/src/lib/commands/para.c +++ b/src/lib/commands/para.c @@ -90,7 +90,7 @@ para(void) /* * now arm and equip the bombers, transports, whatever. */ - pln_arm(&bomb_list, 2 * ap_to_target, 'a', &ichr[I_MILIT]); + pln_arm(&bomb_list, 2 * ap_to_target, 'a', NULL); if (QEMPTY(&bomb_list)) { pr("No planes could be equipped for the mission.\n"); return RET_FAIL; diff --git a/src/lib/subs/mission.c b/src/lib/subs/mission.c index d94c7058..b63f01af 100644 --- a/src/lib/subs/mission.c +++ b/src/lib/subs/mission.c @@ -920,7 +920,7 @@ mission_pln_equip(struct plist *plp, struct ichrstr *ip, char mission) if ((pcp->pl_flags & (P_V | P_C)) == 0) break; itype = I_MILIT; - needed = load / ip->i_lbs; + needed = load / ichr[I_MILIT].i_lbs; break; case 'i': /* missile interception */ if (load) { diff --git a/src/lib/subs/plnsub.c b/src/lib/subs/plnsub.c index 3bbe049f..0bdf30c2 100644 --- a/src/lib/subs/plnsub.c +++ b/src/lib/subs/plnsub.c @@ -663,13 +663,13 @@ pln_equip(struct plist *plp, struct ichrstr *ip, char mission) if ((pcp->pl_flags & P_MINE) == 0) break; itype = I_SHELL; - needed = (load * 2) / ip->i_lbs; + needed = (load * 2) / ichr[I_SHELL].i_lbs; break; case 'a': /* paradrop */ if ((pcp->pl_flags & (P_V | P_C)) == 0) break; itype = I_MILIT; - needed = load / ip->i_lbs; + needed = load / ichr[I_MILIT].i_lbs; break; case 'r': /* reconnaissance */ case 'e': /* escort */