diff --git a/src/lib/subs/nreport.c b/src/lib/subs/nreport.c index 1df7cbde..63457b97 100644 --- a/src/lib/subs/nreport.c +++ b/src/lib/subs/nreport.c @@ -168,9 +168,9 @@ ncache(int actor, int event, int victim, int times) dur = now - np->news.nws_when; if (dur > minutes(5)) continue; - if (np->news.nws_vrb == event && np->news.nws_vno == victim && - np->news.nws_ntm + times <= 65535) { - np->news.nws_ntm += times; + if (np->news.nws_vrb == event && np->news.nws_vno == victim) { + np->news.nws_ntm = LIMIT_TO(np->news.nws_ntm + times, + 0, 65535); np->news.nws_duration = dur; return np; }