From 693f7e156cc77748dcc62cfbaf60663bafb174db Mon Sep 17 00:00:00 2001 From: "wagic.the.homebrew@gmail.com" Date: Sat, 9 Apr 2011 08:26:43 +0000 Subject: [PATCH] Fix a bug reported in the beta, where pressing triangle in the Story mode would crash the game --- projects/mtg/src/StoryFlow.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/projects/mtg/src/StoryFlow.cpp b/projects/mtg/src/StoryFlow.cpp index c479c602c..8672386df 100644 --- a/projects/mtg/src/StoryFlow.cpp +++ b/projects/mtg/src/StoryFlow.cpp @@ -527,6 +527,11 @@ void StoryDialog::Render() void StoryDialog::ButtonPressed(int controllerid, int controlid) { + if ( controlid == kInfoMenuID ) + return; + if ( controlid == kCancelMenuID ) + return; + mParent->gotoPage(((StoryChoice *) mObjects[controlid])->pageId); }