diff --git a/Source/monster.cpp b/Source/monster.cpp index 50165c73b..8279d17bf 100644 --- a/Source/monster.cpp +++ b/Source/monster.cpp @@ -778,6 +778,11 @@ void LoadDiabMonsts() void DeleteMonster(int i) { + auto monster = Monsters[ActiveMonsters[i]]; + if ((monster._mFlags & MFLAG_BERSERK) != 0) { + AddUnLight(monster.mlid); + } + ActiveMonsterCount--; std::swap(ActiveMonsters[i], ActiveMonsters[ActiveMonsterCount]); // This ensures alive monsters are before ActiveMonsterCount in the array and any deleted monster after }