[Bug Fix] Fix RemoveAlternateCurrencyValue not updating Client (#4317)

* [Bug Fix] Fix issue with Client::RemoveAlternateCurrencyValue

* Update client.cpp
This commit is contained in:
Alex King 2024-05-23 17:47:43 -04:00 committed by GitHub
parent e33e076b2a
commit 0d1cbecb55
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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(