From 6ccc859ca0e804fc75fe2de49fdf9374a436ad7f Mon Sep 17 00:00:00 2001 From: "techdragon.nguyen@gmail.com" Date: Mon, 7 Feb 2011 06:55:04 +0000 Subject: [PATCH] The issue is the controller for the menu fails badly when the triangle button is pressed. That particular menu uses the menu item id to index into an array somewhere. Since the triangle key is valued at -200, this causes a negative index into an array. I've added a guard to ignore the triangle key for now. If there is a more elegant solution we can find later than great. Issue: 577 --- projects/mtg/src/GameStateMenu.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/projects/mtg/src/GameStateMenu.cpp b/projects/mtg/src/GameStateMenu.cpp index 08a33715b..64a519ace 100644 --- a/projects/mtg/src/GameStateMenu.cpp +++ b/projects/mtg/src/GameStateMenu.cpp @@ -732,6 +732,8 @@ void GameStateMenu::ButtonPressed(int controllerId, int controlId) switch (controllerId) { case MENU_LANGUAGE_SELECTION: + if ( controlId == kInfoMenuID ) + break; setLang(controlId); WResourceManager::Instance()->ReloadWFonts(); // Fix for choosing Chinese language at first time. subMenuController->Close();