From 3d2707b40e30031b67c2700a5a898d383bcf8a27 Mon Sep 17 00:00:00 2001 From: Anders Jenbo Date: Tue, 26 Jan 2021 01:45:59 +0100 Subject: [PATCH] Fix Golem check (again) --- Source/monster.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/monster.cpp b/Source/monster.cpp index 229e9d7e4..4c90eff86 100644 --- a/Source/monster.cpp +++ b/Source/monster.cpp @@ -1763,7 +1763,7 @@ void M2MStartHit(int mid, int i, int dam) assurance((DWORD)mid < MAXMONSTERS, mid); assurance(monster[mid].MType != NULL, mid); - if (i >= 0 && i <= MAX_PLRS) + if (i >= 0 && i < MAX_PLRS) monster[mid].mWhoHit |= 1 << i; delta_monster_hp(mid, monster[mid]._mhitpoints, currlevel);