diff options
author | Lupus <Lupus@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2004-11-21 19:58:41 +0000 |
---|---|---|
committer | Lupus <Lupus@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2004-11-21 19:58:41 +0000 |
commit | c8a67180701700f070c4437b5ea2b9e3d9eaa8e2 (patch) | |
tree | 283ad0261ab11a492061c7c9e443ce6f9d6a2c25 /src/map/trade.c | |
parent | 5e8b9c8cd3c97cdbd015e6d87532d945fcae16cc (diff) | |
download | hercules-c8a67180701700f070c4437b5ea2b9e3d9eaa8e2.tar.gz hercules-c8a67180701700f070c4437b5ea2b9e3d9eaa8e2.tar.bz2 hercules-c8a67180701700f070c4437b5ea2b9e3d9eaa8e2.tar.xz hercules-c8a67180701700f070c4437b5ea2b9e3d9eaa8e2.zip |
fixed again
vending, trade....
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/athena@301 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/trade.c')
-rw-r--r-- | src/map/trade.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/map/trade.c b/src/map/trade.c index 4f8d81b35..9d2128690 100644 --- a/src/map/trade.c +++ b/src/map/trade.c @@ -96,8 +96,10 @@ void trade_tradeadditem(struct map_session_data *sd, int index, int amount) sd->deal_zeny = amount; clif_tradeadditem(sd, target_sd, 0, amount); } else { - trade_tradecancel(sd); - return; + if (amount != 0) { + trade_tradecancel(sd); + return; + } } } } else if (amount > 0 && amount <= sd->status.inventory[index-2].amount) { @@ -128,7 +130,6 @@ void trade_tradeadditem(struct map_session_data *sd, int index, int amount) } } - /*========================================== * ƒAƒCƒeƒ€’ljÁŠ®—¹(ok‰Ÿ‚µ) *------------------------------------------ |