From 297206b054d7cbff9f8874aa3f384373148bf8bc Mon Sep 17 00:00:00 2001 From: Anthony Calosa Date: Wed, 14 Oct 2015 21:33:12 +0800 Subject: [PATCH] Fix update profile stat after buying cards profile stats on the upper left of main menu should update after buying some cards :) --- projects/mtg/src/GameStateShop.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/projects/mtg/src/GameStateShop.cpp b/projects/mtg/src/GameStateShop.cpp index 84ca3f6e4..d7f6f76b5 100644 --- a/projects/mtg/src/GameStateShop.cpp +++ b/projects/mtg/src/GameStateShop.cpp @@ -5,6 +5,7 @@ #include #include "GameStateShop.h" +#include "GameStateMenu.h" #include "GameApp.h" #include "MTGDeck.h" #include "MTGPack.h" @@ -840,6 +841,7 @@ void GameStateShop::ButtonPressed(int controllerId, int controlId) mStage = STAGE_SHOP_SHOP; mParent->DoTransition(TRANSITION_FADE, GAME_STATE_MENU); save(); + GameStateMenu::genNbCardsStr(); break; case 14: mStage = STAGE_SHOP_TASKS;