summaryrefslogtreecommitdiff
path: root/src/koopatlas/shop.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/koopatlas/shop.cpp')
-rw-r--r--src/koopatlas/shop.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/koopatlas/shop.cpp b/src/koopatlas/shop.cpp
index b42c58a..514bd43 100644
--- a/src/koopatlas/shop.cpp
+++ b/src/koopatlas/shop.cpp
@@ -547,6 +547,11 @@ void dWMShop_c::buyItem(int item) {
block->player_lives[i] = 99;
}
+ // load the coin count
+ int scCount = getStarCoinCount();
+ WriteNumberToTextBox(&scCount, CoinCount, false);
+ WriteNumberToTextBox(&scCount, CoinCountShadow, false);
+
state.setState(&StateID_HideWait);
}