summaryrefslogtreecommitdiff
path: root/src/map/pc.c
diff options
context:
space:
mode:
authormalufett <malufett.eat.my.binaries@gmail.com>2014-12-20 00:13:35 +0800
committermalufett <malufett.eat.my.binaries@gmail.com>2014-12-20 00:13:35 +0800
commitc4456ddbebccaca51ab040c60e3c586ed2cc0a10 (patch)
tree53d3e23baab08d63d88fdc055f6880f884aac640 /src/map/pc.c
parent772cb2b111973c0c749e505ffd2685bb67e887bd (diff)
parent68f0fee76a73612263984da5d9de1e32b7ffe7da (diff)
downloadhercules-c4456ddbebccaca51ab040c60e3c586ed2cc0a10.tar.gz
hercules-c4456ddbebccaca51ab040c60e3c586ed2cc0a10.tar.bz2
hercules-c4456ddbebccaca51ab040c60e3c586ed2cc0a10.tar.xz
hercules-c4456ddbebccaca51ab040c60e3c586ed2cc0a10.zip
Merge branch 'master' of https://github.com/HerculesWS/Hercules
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 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;