summaryrefslogtreecommitdiff
path: root/src/map/trade.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-08-10 19:06:13 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-08-10 19:06:13 +0000
commitb2eab179f9d7a34e5e1027fd48007005e2b906f2 (patch)
treedea5de98321b12a8db525fb8d85d2dee2cf53014 /src/map/trade.c
parent09191b769abcca2ce8db3fb4fc225c849d9a3610 (diff)
downloadhercules-b2eab179f9d7a34e5e1027fd48007005e2b906f2.tar.gz
hercules-b2eab179f9d7a34e5e1027fd48007005e2b906f2.tar.bz2
hercules-b2eab179f9d7a34e5e1027fd48007005e2b906f2.tar.xz
hercules-b2eab179f9d7a34e5e1027fd48007005e2b906f2.zip
- Should have fixed the login-sql crash when passed user-name's length is beyond the limit.
- Removed setting mob_ghostring_fix - Changed setting attack_attr_none to affect all neutral-element attacks. Basicly, this setting is now used to determine who can hit for full damage always when using neutral-attacks (defaults to non-players) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@8237 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/trade.c')
-rw-r--r--src/map/trade.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/trade.c b/src/map/trade.c
index 93f8490d4..6c8675d2b 100644
--- a/src/map/trade.c
+++ b/src/map/trade.c
@@ -151,7 +151,7 @@ int impossible_trade_check(struct map_session_data *sd) {
// re-added! [celest]
// remove equiped items (they can not be trade)
for (i = 0; i < MAX_INVENTORY; i++)
- if (inventory[i].nameid > 0 && inventory[i].equip && !(inventory[i].equip & 0x8000))
+ if (inventory[i].nameid > 0 && inventory[i].equip && !(inventory[i].equip & EQP_AMMO))
memset(&inventory[i], 0, sizeof(struct item));
// check items in player inventory