summaryrefslogtreecommitdiff
path: root/src/map
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-07-12 02:40:35 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-07-12 02:40:35 +0000
commitcae47aa6af41e4ca7c5779a4b92b0340be4bee6c (patch)
tree2336e1980e8132b5e67a7e931dc3931e3e55abf4 /src/map
parent5cf361411259af0c0afa5b4109ee2fda90d0a3bb (diff)
downloadhercules-cae47aa6af41e4ca7c5779a4b92b0340be4bee6c.tar.gz
hercules-cae47aa6af41e4ca7c5779a4b92b0340be4bee6c.tar.bz2
hercules-cae47aa6af41e4ca7c5779a4b92b0340be4bee6c.tar.xz
hercules-cae47aa6af41e4ca7c5779a4b92b0340be4bee6c.zip
- Fixed inverted check which was preventing you from buying more than 1 from any stackable item....
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7627 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map')
-rw-r--r--src/map/npc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/npc.c b/src/map/npc.c
index c5fd46d02..5a76ef11b 100644
--- a/src/map/npc.c
+++ b/src/map/npc.c
@@ -1198,7 +1198,7 @@ int npc_buylist(struct map_session_data *sd,int n,unsigned short *item_list)
if (nd->u.shop_item[j].nameid==0)
return 3;
- if (itemdb_isstackable(nd->u.shop_item[j].nameid) && item_list[i*2] > 1)
+ if (!itemdb_isstackable(nd->u.shop_item[j].nameid) && item_list[i*2] > 1)
{ //Exploit? You can't buy more than 1 of equipment types o.O
ShowWarning("Player %s (%d:%d) sent a hexed packet trying to buy %d of nonstackable item %d!\n",
sd->status.name, sd->status.account_id, sd->status.char_id, item_list[i*2], nd->u.shop_item[j].nameid);