Fix oops on escort, recon, and launch of satellite
authorMarkus Armbruster <armbru@pond.sub.org>
Wed, 13 Jan 2010 20:21:58 +0000 (21:21 +0100)
committerMarkus Armbruster <armbru@pond.sub.org>
Tue, 19 Jan 2010 07:40:17 +0000 (08:40 +0100)
Broken in commit 528df9ac, v4.3.23.  pln_equip() recovered fine.

src/lib/subs/plnsub.c

index 3567333cf41539a3f99b46f2dfec8e7e408f983b..597443bd837a7e52a150bfe68ed00dccf3cf78a3 100644 (file)
@@ -681,6 +681,8 @@ pln_equip(struct plist *plp, struct ichrstr *ip, char mission)
        break;
     case 'r':          /* reconnaissance */
     case 'e':          /* escort */
+       load = 0;
+       break;
     case 'i':          /* missile interception */
        if (CANT_HAPPEN(!(pcp->pl_flags & P_M)
                        || !(pcp->pl_flags & (P_N | P_O))))