Previous rev. assumes would_abandon() returns 0 or 1. Correct, but
unmodular. Don't.
This commit is contained in:
parent
91be114d9b
commit
8e12bb8574
1 changed files with 1 additions and 1 deletions
|
@ -695,7 +695,7 @@ pln_equip(struct plist *plp, struct ichrstr *ip, int flags, s_char mission)
|
|||
plp->plane.pln_y,
|
||||
I_SHELL, needed);
|
||||
#endif
|
||||
abandon_needed = would_abandon(§, itype, needed, NULL);
|
||||
abandon_needed = !!would_abandon(§, itype, needed, NULL);
|
||||
if (item[itype] < needed + abandon_needed) {
|
||||
pr("Not enough %s for %s\n", ichr[itype].i_name, prplane(pp));
|
||||
return -1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue