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

This commit is contained in:
jacob1 2018-03-31 23:38:53 -04:00
parent fdd6618896
commit 9c5876f0b4
2 changed files with 2 additions and 2 deletions

View File

@ -34,7 +34,7 @@ public:
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

View File

@ -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;
}
}