Browse Source

Add bugfix to MonstStartKill

pull/831/head^2
Anders Jenbo 6 years ago committed by GitHub
parent
commit
36e319cb7f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      Source/monster.cpp

2
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;

Loading…
Cancel
Save