(perform_mission): Do not pass the sub-owner to nreport(). News

doesn't show it, but selectors do.  Reported by Doug Wescott.

(nreport, ncache): Catch errors like the above.  Catch bad event
argument while we're at it.
This commit is contained in:
Markus Armbruster 2005-11-03 17:40:16 +00:00
parent f2eaedfe75
commit d71ab5a3e5
2 changed files with 9 additions and 5 deletions

View file

@ -600,7 +600,7 @@ perform_mission(coord x, coord y, natid victim, struct emp_qelem *list,
dam2 = TORP_DAMAGE();
dam += dam2;
nreport(victim, N_TORP_SHIP, sp->shp_own, 1);
nreport(victim, N_TORP_SHIP, 0, 1);
wu(0, sp->shp_own,
"\tTorpedo hit %s %s for %d damage\n",
cname(victim), s, dam2);