tend: Fix the amount tended in bulletin to recipient

The bulletin reports the total amount tended to all ships so far.
Broken in commit 1de48e53da (v4.3.0), not fixed in commit 7cc14a2c9a
(v4.3.1).  Fix the bulletin to report the amount tended to this ship.

Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
This commit is contained in:
Markus Armbruster 2017-09-14 16:08:22 +02:00
parent 6035487287
commit 18f3b84390
3 changed files with 7 additions and 9 deletions

View file

@ -173,7 +173,7 @@ tend(void)
total += transfer;
if (transfer && target.shp_own != player->cnum) {
wu(0, target.shp_own, "%s tended %d %s to %s\n",
cname(player->cnum), total, ip->i_name,
cname(player->cnum), transfer, ip->i_name,
prship(&target));
}
}