From 0d1cbecb5566fa01b47d3626e6b8b9c9f5f66aaf Mon Sep 17 00:00:00 2001 From: Alex King <89047260+Kinglykrab@users.noreply.github.com> Date: Thu, 23 May 2024 17:47:43 -0400 Subject: [PATCH] [Bug Fix] Fix RemoveAlternateCurrencyValue not updating Client (#4317) * [Bug Fix] Fix issue with Client::RemoveAlternateCurrencyValue * Update client.cpp --- zone/client.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/zone/client.cpp b/zone/client.cpp index db77be18d..cdfaaca5d 100644 --- a/zone/client.cpp +++ b/zone/client.cpp @@ -6786,6 +6786,8 @@ bool Client::RemoveAlternateCurrencyValue(uint32 currency_id, uint32 amount) const uint32 new_amount = (current_amount - amount); alternate_currency[currency_id] = new_amount; + database.UpdateAltCurrencyValue(CharacterID(), currency_id, new_amount); + SendAlternateCurrencyValue(currency_id); if (parse->PlayerHasQuestSub(EVENT_ALT_CURRENCY_LOSS)) { const std::string &export_string = fmt::format(