diff options
Diffstat (limited to 'src/map/trade.c')
-rw-r--r-- | src/map/trade.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/map/trade.c b/src/map/trade.c index b9c142332..1e0486356 100644 --- a/src/map/trade.c +++ b/src/map/trade.c @@ -324,6 +324,9 @@ void trade_tradeadditem(struct map_session_data *sd, int index, int amount) { if (amount < 0 || amount > sd->status.inventory[index].amount)
return;
+ if (sd->status.inventory[index].equip)
+ return; //must not be able to trade equipped items.
+
nameid = sd->inventory_data[index]->nameid;
if (!itemdb_cantrade(nameid, pc_isGM(sd), pc_isGM(target_sd)) && //Can't trade
|