From 9e489df41da015eeefb9c671d48ab98858e857a7 Mon Sep 17 00:00:00 2001 From: Robin Eklind Date: Fri, 2 Apr 2021 01:42:59 +0200 Subject: [PATCH] monster: add BUGFIX for DeleteMonsterList Golems should only be pseudo deleted, as their monster array indices are special and should not appear in the available monster index list. --- Source/monster.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/monster.cpp b/Source/monster.cpp index fa9a38b7f..770fa426e 100644 --- a/Source/monster.cpp +++ b/Source/monster.cpp @@ -5502,7 +5502,7 @@ void DeleteMonsterList() while (i < nummonsters) { if (monster[monstactive[i]]._mDelFlag) { DeleteMonster(i); - i = 0; // TODO: check if this should be MAX_PLRS. + i = 0; // BUGFIX: should be `i = MAX_PLRS`, was 0 (only pseudo delete golems, their monster array indices are special and should not appear in the available monster index list). } else { i++; }