Fix a bug reported in the beta, where pressing triangle in the Story mode would crash the game
This commit is contained in:
@@ -527,6 +527,11 @@ void StoryDialog::Render()
|
|||||||
|
|
||||||
void StoryDialog::ButtonPressed(int controllerid, int controlid)
|
void StoryDialog::ButtonPressed(int controllerid, int controlid)
|
||||||
{
|
{
|
||||||
|
if ( controlid == kInfoMenuID )
|
||||||
|
return;
|
||||||
|
if ( controlid == kCancelMenuID )
|
||||||
|
return;
|
||||||
|
|
||||||
mParent->gotoPage(((StoryChoice *) mObjects[controlid])->pageId);
|
mParent->gotoPage(((StoryChoice *) mObjects[controlid])->pageId);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user