diff --git a/src/game/bank/bank.cpp b/src/game/bank/bank.cpp index 63952e917b8..f1a700388e0 100644 --- a/src/game/bank/bank.cpp +++ b/src/game/bank/bank.cpp @@ -97,7 +97,7 @@ bool Bank::transferTo(const std::shared_ptr destination, uint64_t amount) return false; } if (destinationBankable->getPlayer() != nullptr) { - auto player = bankable->getPlayer(); + auto player = destinationBankable->getPlayer(); auto name = asLowerCaseString(player->getName()); replaceString(name, " ", ""); if (deniedNames.contains(name)) {