From 9291827eaa9e4e0266baedaf7ad8533def40c7e9 Mon Sep 17 00:00:00 2001 From: Robin Eklind Date: Mon, 26 Aug 2019 14:45:44 +0200 Subject: [PATCH] monster: add BUGFIX comment for monstkills The size of the monstkills array is unnecessarily large, as it maps from monster type to number of kills, and the monster type enum goes from 0 to NUM_MTYPES-1. --- Source/monster.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Source/monster.cpp b/Source/monster.cpp index ca1453b44..5c9bf9275 100644 --- a/Source/monster.cpp +++ b/Source/monster.cpp @@ -4,6 +4,7 @@ // Tracks which missile files are already loaded int MissileFileFlag; +// BUGFIX: replace monstkills[MAXMONSTERS] with monstkills[NUM_MTYPES]. int monstkills[MAXMONSTERS]; int monstactive[MAXMONSTERS]; int nummonsters;