From 22ff664dee66bbc3eb101380cc8f6d5fa85fc4b8 Mon Sep 17 00:00:00 2001 From: qndel Date: Mon, 6 Sep 2021 20:41:19 +0200 Subject: [PATCH] golem assert fix --- Source/monster.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/monster.cpp b/Source/monster.cpp index ca38f13f5..b0c234b92 100644 --- a/Source/monster.cpp +++ b/Source/monster.cpp @@ -4180,7 +4180,7 @@ void M_WalkDir(int i, Direction md) void GolumAi(int i) { - assert(i >= 0 && i < MAXMONSTERS); + assert(i >= 0 && i < MAX_PLRS); auto &golem = Monsters[i]; if (golem.position.tile.x == 1 && golem.position.tile.y == 0) {