Browse Source

monster: add BUGFIX to MAI_Golum

The dMonster array stores monster array index numbers + 1
(or the corresponding negative version -(index + 1)).
Prior to use, these must be decremented by 1.
pull/831/head^2
Robin Eklind 6 years ago committed by Anders Jenbo
parent
commit
7cabbb43f6
  1. 2
      Source/monster.cpp

2
Source/monster.cpp

@ -3952,7 +3952,7 @@ void MAI_Golum(int i)
for (k = 0; k < 5; k++) {
_menemy = dMonster[monster[i]._mx + k - 2][monster[i]._my + j - 2];
if (_menemy > 0)
monster[_menemy]._msquelch = UCHAR_MAX;
monster[_menemy]._msquelch = UCHAR_MAX; // BUGFIX: should be `monster[_menemy-1]`, not monster[_menemy].
}
}
}

Loading…
Cancel
Save