From d7a86330c6e152a287aa245a1a92eea37358ce3f Mon Sep 17 00:00:00 2001 From: Anders Jenbo Date: Sat, 3 Jul 2021 03:53:32 +0200 Subject: [PATCH] Correct assertions in ProcessMonsters --- Source/monster.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/monster.cpp b/Source/monster.cpp index f300f0f8b..f70cb4d68 100644 --- a/Source/monster.cpp +++ b/Source/monster.cpp @@ -4398,12 +4398,12 @@ void ProcessMonsters() int menemy; if ((Monst->_mFlags & MFLAG_TARGETS_MONSTER) != 0) { menemy = Monst->_menemy; - assurance((DWORD)menemy < MAXMONSTERS, Monst); + assurance((DWORD)menemy < MAXMONSTERS, menemy); Monst->position.last = monster[Monst->_menemy].position.future; Monst->enemyPosition = Monst->position.last; } else { menemy = Monst->_menemy; - assurance((DWORD)menemy < MAX_PLRS, Monst); + assurance((DWORD)menemy < MAX_PLRS, menemy); Monst->enemyPosition = plr[Monst->_menemy].position.future; if ((dFlags[mx][my] & BFLAG_VISIBLE) != 0) { Monst->_msquelch = UINT8_MAX;