From e0e70276d5d0bf992d7327d4e2696da62c5a2237 Mon Sep 17 00:00:00 2001 From: ultramage Date: Sun, 27 May 2007 19:26:00 +0000 Subject: Cleaned up a hack from r10112 (forward declaration does the trick) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@10633 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/itemdb.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/map/itemdb.c') diff --git a/src/map/itemdb.c b/src/map/itemdb.c index bf23c5280..4e93dc309 100644 --- a/src/map/itemdb.c +++ b/src/map/itemdb.c @@ -101,16 +101,16 @@ int itemdb_searchrandomid(int group) /*========================================== * Calculates total item-group related bonuses for the given item *------------------------------------------*/ -int itemdb_group_bonus(const int itemgrouphealrate[MAX_ITEMGROUP], int itemid) +int itemdb_group_bonus(struct map_session_data* sd, int itemid) { int bonus = 0, i, j; for (i=0; i < MAX_ITEMGROUP; i++) { - if (!itemgrouphealrate[i]) + if (!sd->itemgrouphealrate[i]) continue; for (j=0; j < itemgroup_db[i].qty; j++) { if (itemgroup_db[i].nameid[j] == itemid) { - bonus += itemgrouphealrate[i]; + bonus += sd->itemgrouphealrate[i]; break; } } -- cgit v1.2.3-70-g09d2