From 71801a30f28105696e65ff786d6bb352e86b588d Mon Sep 17 00:00:00 2001 From: Remco Date: Fri, 10 Jun 2016 11:06:39 +0200 Subject: [PATCH] player crystals refresh --- WorldHandler.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/WorldHandler.cpp b/WorldHandler.cpp index 08f9ba0..0b3fe21 100644 --- a/WorldHandler.cpp +++ b/WorldHandler.cpp @@ -126,6 +126,7 @@ void WorldHandler::NextWorld() if (!loadingWorld) { ChangeWorld(worldIndex + 1); + Player::getInstance()->crystals = 0; } } @@ -134,5 +135,6 @@ void WorldHandler::PreviousWorld() if (!loadingWorld) { ChangeWorld(worldIndex - 1); + Player::getInstance()->crystals = 0; } } \ No newline at end of file