Permalink
Browse files

fix crash when can't purchase back, fix debug info in tampering message

  • Loading branch information...
jacob1 committed Apr 1, 2018
1 parent fdd6618 commit 9c5876f0b4b3f217a6867d88cc73619c2c230f17
Showing with 2 additions and 2 deletions.
  1. +1 −1 src/gui/coin/Redeem.cpp
  2. +1 −1 src/gui/game/GameController.cpp
@@ -34,7 +34,7 @@ class PackRedeem : public ui::ButtonAction
std::string unlockPrice = format::NumberToString<int>(price);
if (numCoins < price)
{
new ErrorMessage("Cannot afford pack", "This pack requires " + unlockPrice
ErrorMessage::Blocking("Cannot afford pack", "This pack requires " + unlockPrice
+ " \xEA""owdercoins to purchase.\n\nYou have " + format::NumberToString<int>(numCoins) + " coins");
}
else
@@ -196,7 +196,7 @@ GameController::GameController():
if (salt != expectedSaltStr)
{
gameModel->Log("Coins have been reset due to login status change or tampering, expected " + expectedSaltStr + ", got " + salt + ", current coins " + format::NumberToString(coins), false);
gameModel->Log("Coins have been reset due to login status change or tampering", false);
coins = 0;
}
}

0 comments on commit 9c5876f

Please sign in to comment.