summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/map/trade.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/map/trade.cpp b/src/map/trade.cpp
index c0f8c46..785a4da 100644
--- a/src/map/trade.cpp
+++ b/src/map/trade.cpp
@@ -125,6 +125,7 @@ void trade_tradeadditem(dumb_ptr<map_session_data> sd, int index, int amount)
clif_tradeadditem(sd, target_sd, 0, amount);
}
}
+ // note: amount is overridden below!
else if (amount <= sd->status.inventory[index - 2].amount
&& amount > 0)
{
@@ -166,10 +167,12 @@ void trade_tradeadditem(dumb_ptr<map_session_data> sd, int index, int amount)
target_sd->max_weight)
{
clif_tradeitemok(sd, index, 0, 1); //fail to add item -- the player was over weighted.
+ amount = 0; // [MouseJstr]
}
else if (free_ <= 0)
{
clif_tradeitemok(sd, index, 0, 2); //fail to add item -- no free slots at receiver
+ amount = 0; // peavey
}
else
{