From 19e967c7ddee07b4644fafcc3d2320d215d7090d Mon Sep 17 00:00:00 2001 From: fgenesis Date: Mon, 27 Feb 2017 02:03:08 +0100 Subject: [PATCH] Fix crash in static initializer (how did this ever work?) --- BBGE/GameKeyNames.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BBGE/GameKeyNames.cpp b/BBGE/GameKeyNames.cpp index b0562f0..2cfd1b5 100644 --- a/BBGE/GameKeyNames.cpp +++ b/BBGE/GameKeyNames.cpp @@ -6,7 +6,7 @@ typedef std::map InputCodeMap; InputCodeMap inputCodeMap; -static std::string keyNames[KEY_MAXARRAY]; +static std::string keyNames[ACTION_BUTTON_ENUM_SIZE]; static void initInputCodeMap() {