From a050a1a8a1bb9e5a61a3b9ac60e1e688e98c4ea3 Mon Sep 17 00:00:00 2001 From: skotlex Date: Sun, 23 Dec 2007 11:06:58 +0000 Subject: - 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 --- src/map/pc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/map/pc.c') 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]; -- cgit v1.2.3-60-g2f50