From 36e319cb7f005e5db1fe078a7a102e10292b9840 Mon Sep 17 00:00:00 2001 From: Anders Jenbo Date: Sat, 6 Jun 2020 20:03:27 +0200 Subject: [PATCH] Add bugfix to MonstStartKill --- Source/monster.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/monster.cpp b/Source/monster.cpp index ce7e3507c..1fa4dc1e1 100644 --- a/Source/monster.cpp +++ b/Source/monster.cpp @@ -1640,7 +1640,7 @@ void MonstStartKill(int i, int pnum, BOOL sendmsg) Monst = &monster[i]; if (pnum >= 0) Monst->mWhoHit |= 1 << pnum; - if (pnum < MAX_PLRS && i > MAX_PLRS) + if (pnum < MAX_PLRS && i > MAX_PLRS) /// BUGFIX: i >= MAX_PLRS AddPlrMonstExper(Monst->mLevel, Monst->mExp, Monst->mWhoHit); monstkills[Monst->MType->mtype]++; Monst->_mhitpoints = 0;