From 65ad296de43a0cfa0e65de2b9ae6827385679233 Mon Sep 17 00:00:00 2001 From: galaxyhaxz Date: Wed, 8 May 2019 22:45:12 -0500 Subject: [PATCH] Bugfix note to M2MStartKill --- Source/monster.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Source/monster.cpp b/Source/monster.cpp index b4708a5d4..4f7e17972 100644 --- a/Source/monster.cpp +++ b/Source/monster.cpp @@ -1696,6 +1696,8 @@ void M2MStartKill(int i, int mid) if ((DWORD)i >= MAXMONSTERS) { app_fatal("M2MStartKill: Invalid monster (attacker) %d", i); + } + if ((DWORD)i >= MAXMONSTERS) { /// BUGFIX: should check `mid` app_fatal("M2MStartKill: Invalid monster (killed) %d", mid); } if (!monster[i].MType)