(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:
parent
f2eaedfe75
commit
d71ab5a3e5
2 changed files with 9 additions and 5 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue