Zero both players' moneyInTrade when initiating a trade

This commit is contained in:
Jade 2020-12-26 20:13:23 +01:00 committed by dongresource
parent afea9f436f
commit f8129b91cb

View File

@ -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));