mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-12 05:21:29 +00:00
[Bug Fix] Fix RemoveAlternateCurrencyValue not updating Client (#4317)
* [Bug Fix] Fix issue with Client::RemoveAlternateCurrencyValue * Update client.cpp
This commit is contained in:
parent
e33e076b2a
commit
0d1cbecb55
@ -6786,6 +6786,8 @@ bool Client::RemoveAlternateCurrencyValue(uint32 currency_id, uint32 amount)
|
|||||||
const uint32 new_amount = (current_amount - amount);
|
const uint32 new_amount = (current_amount - amount);
|
||||||
|
|
||||||
alternate_currency[currency_id] = new_amount;
|
alternate_currency[currency_id] = new_amount;
|
||||||
|
database.UpdateAltCurrencyValue(CharacterID(), currency_id, new_amount);
|
||||||
|
SendAlternateCurrencyValue(currency_id);
|
||||||
|
|
||||||
if (parse->PlayerHasQuestSub(EVENT_ALT_CURRENCY_LOSS)) {
|
if (parse->PlayerHasQuestSub(EVENT_ALT_CURRENCY_LOSS)) {
|
||||||
const std::string &export_string = fmt::format(
|
const std::string &export_string = fmt::format(
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user