From 7cdb11d39853378de56ae80479eb3c1dd0698d9f Mon Sep 17 00:00:00 2001 From: MadCamel Date: Thu, 11 Feb 2010 05:52:53 -0500 Subject: Re-calculate player stats when an equipped item is removed. This fixes the issue where a player could drop/trade/store an equipped item and still retain it's attack/def/etc buffs. --- src/map/trade.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/map/trade.c') diff --git a/src/map/trade.c b/src/map/trade.c index a62677d..0f21648 100644 --- a/src/map/trade.c +++ b/src/map/trade.c @@ -181,7 +181,7 @@ void trade_tradeadditem (struct map_session_data *sd, int index, int amount) return; } } - pc_unequipinvyitem (sd, index - 2, 1); + pc_unequipinvyitem (sd, index - 2, 0); sd->deal_item_index[trade_i] = index; sd->deal_item_amount[trade_i] += amount; clif_tradeitemok (sd, index, amount, 0); //success to add item -- cgit v1.2.3-70-g09d2