summaryrefslogtreecommitdiff
path: root/src/map/pc.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-12-23 11:06:58 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-12-23 11:06:58 +0000
commita050a1a8a1bb9e5a61a3b9ac60e1e688e98c4ea3 (patch)
tree93e52b49aaee75c70e52aa0400fe20814d38ec7a /src/map/pc.c
parent4161c99f71fbd824163356c642731f7599c291e2 (diff)
downloadhercules-a050a1a8a1bb9e5a61a3b9ac60e1e688e98c4ea3.tar.gz
hercules-a050a1a8a1bb9e5a61a3b9ac60e1e688e98c4ea3.tar.bz2
hercules-a050a1a8a1bb9e5a61a3b9ac60e1e688e98c4ea3.tar.xz
hercules-a050a1a8a1bb9e5a61a3b9ac60e1e688e98c4ea3.zip
- Fixed warning about unused variable
- Made the kaahi heal timer function uncrashable. - Fixed pc move item to cart function checking against the wrong max index. - Fixed initialization of sd issue in map_addblock - Removed redundant reinitialization when parsing item pickup. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11968 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/pc.c')
-rw-r--r--src/map/pc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/pc.c b/src/map/pc.c
index 13065ea24..520f10f0d 100644
--- a/src/map/pc.c
+++ b/src/map/pc.c
@@ -3212,7 +3212,7 @@ int pc_putitemtocart(struct map_session_data *sd,int idx,int amount) {
nullpo_retr(0, sd);
- if (idx < 0 || idx >= MAX_CART) //Invalid index check [Skotlex]
+ if (idx < 0 || idx >= MAX_INVENTORY) //Invalid index check [Skotlex]
return 1;
item_data = &sd->status.inventory[idx];