Browse Source

Fix debug builds

M_RoundWalk
Anders Jenbo 5 years ago
parent
commit
e285cacce5
  1. 4
      Source/monster.cpp

4
Source/monster.cpp

@ -4398,12 +4398,12 @@ void ProcessMonsters()
int menemy; int menemy;
if ((Monst->_mFlags & MFLAG_TARGETS_MONSTER) != 0) { if ((Monst->_mFlags & MFLAG_TARGETS_MONSTER) != 0) {
menemy = Monst->_menemy; menemy = Monst->_menemy;
assurance((DWORD)menemy < MAXMONSTERS, _menemy); assurance((DWORD)menemy < MAXMONSTERS, Monst);
Monst->position.last = monster[Monst->_menemy].position.future; Monst->position.last = monster[Monst->_menemy].position.future;
Monst->enemyPosition = Monst->position.last; Monst->enemyPosition = Monst->position.last;
} else { } else {
menemy = Monst->_menemy; menemy = Monst->_menemy;
assurance((DWORD)menemy < MAX_PLRS, _menemy); assurance((DWORD)menemy < MAX_PLRS, Monst);
Monst->enemyPosition = plr[Monst->_menemy].position.future; Monst->enemyPosition = plr[Monst->_menemy].position.future;
if ((dFlags[mx][my] & BFLAG_VISIBLE) != 0) { if ((dFlags[mx][my] & BFLAG_VISIBLE) != 0) {
Monst->_msquelch = UINT8_MAX; Monst->_msquelch = UINT8_MAX;

Loading…
Cancel
Save