summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/net/buysellhandler.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/net/buysellhandler.cpp b/src/net/buysellhandler.cpp
index 5eb76a46..16cfdc06 100644
--- a/src/net/buysellhandler.cpp
+++ b/src/net/buysellhandler.cpp
@@ -114,6 +114,9 @@ void BuySellHandler::handleMessage(MessageIn *msg)
if (msg->readInt8() == 0) {
chatWindow->chatLog("Thanks for buying", BY_SERVER);
} else {
+ // Reset player money since buy dialog already assumed purchase
+ // would go fine
+ buyDialog->setMoney(player_node->mGp);
chatWindow->chatLog("Unable to buy", BY_SERVER);
}
break;