Skip to content

Commit

Permalink
fix: correct getAccountId method
Browse files Browse the repository at this point in the history
  • Loading branch information
dudantas committed Sep 14, 2024
1 parent b1dbd35 commit 88c7fab
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion data-otservbr-global/migrations/46.lua
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
function onUpdateDatabase()
logger.info("Updating database to version 47 (feat: gamestore cpp)")
logger.info("Updating database to version 47 (migrate gamestore to cpp)")

db.query([[
ALTER TABLE `store_history`
Expand Down
2 changes: 1 addition & 1 deletion src/game/game.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10570,7 +10570,7 @@ void Game::playerCoinTransfer(uint32_t playerId, std::string receptorName, uint3
return;
}

if (playerDonator == playerReceptor || playerDonator->getAccount() == playerReceptor->getAccount()) {
if (playerDonator == playerReceptor || playerDonator->getAccountId() == playerReceptor->getAccountId()) {
return;
}

Expand Down

0 comments on commit 88c7fab

Please sign in to comment.