tend ltend: Handle "don't have commodity" consistently
Transferring commodities from tenders to targets fails when a tender doesn't have any. Transferring them from targets to tenders continues with the next target when a target doesn't have any. Has always been that way. Change the former to continue with the next tender. Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
This commit is contained in:
parent
1bde4df2bd
commit
3dc22e8497
4 changed files with 6 additions and 7 deletions
|
@ -119,7 +119,7 @@ tend(void)
|
|||
ontender = tender.shp_item[ip->i_uid];
|
||||
if (ontender == 0 && amt > 0) {
|
||||
pr("No %s on %s\n", ip->i_name, prship(&tender));
|
||||
return RET_FAIL;
|
||||
continue;
|
||||
}
|
||||
vbase = &mchr[(int)tender.shp_type];
|
||||
maxtender = vbase->m_item[ip->i_uid];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue