Skip to content

Commit

Permalink
fix crash when can't purchase back, fix debug info in tampering message
Browse files Browse the repository at this point in the history
  • Loading branch information
jacob1 committed Apr 1, 2018
1 parent fdd6618 commit 9c5876f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/gui/coin/Redeem.cpp
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/gui/game/GameController.cpp
Expand Up @@ -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;
}
}
Expand Down

0 comments on commit 9c5876f

Please sign in to comment.