From d48884f776c943b32bf432076ac28180a4410b06 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 15 Dec 2014 13:57:12 +0300 Subject: Move check is item usable or not to separate method. New method: itemdb_is_item_usable Can be used as: itemdb->is_item_usable(item) --- 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 5c6cac6e9..6c3a32152 100644 --- a/src/map/pc.c +++ b/src/map/pc.c @@ -4238,7 +4238,7 @@ int pc_isUseitem(struct map_session_data *sd,int n) if( item == NULL ) return 0; //Not consumable item - if( item->type != IT_HEALING && item->type != IT_USABLE && item->type != IT_CASH ) + if (!itemdb->is_item_usable(item)) return 0; if( !item->script ) //if it has no script, you can't really consume it! return 0; -- cgit v1.2.3-70-g09d2