mirror of
https://github.com/OpenFusionProject/OpenFusion.git
synced 2024-11-05 06:50:04 +00:00
Zero both players' moneyInTrade when initiating a trade
This commit is contained in:
parent
afea9f436f
commit
f8129b91cb
@ -428,6 +428,9 @@ void ItemManager::itemTradeOfferAcceptHandler(CNSocket* sock, CNPacketData* data
|
|||||||
plr->isTradeConfirm = false;
|
plr->isTradeConfirm = false;
|
||||||
plr2->isTradeConfirm = false;
|
plr2->isTradeConfirm = false;
|
||||||
|
|
||||||
|
plr->moneyInTrade = 0;
|
||||||
|
plr2->moneyInTrade = 0;
|
||||||
|
|
||||||
memset(&plr->Trade, 0, sizeof(plr->Trade));
|
memset(&plr->Trade, 0, sizeof(plr->Trade));
|
||||||
memset(&plr2->Trade, 0, sizeof(plr2->Trade));
|
memset(&plr2->Trade, 0, sizeof(plr2->Trade));
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user