From 53a38c073f1c0dc6fb7f06abf52d307c12fa97f9 Mon Sep 17 00:00:00 2001 From: LeoTK <41605307+LeoTKBR@users.noreply.github.com> Date: Tue, 7 Nov 2023 19:58:19 -0300 Subject: [PATCH] #Fix crash server - guild bank withdraw MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This change fixes the error that closed the server when trying to withdraw values ​​from the guild bank using the guild withdraw command --- src/game/bank/bank.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)) {