From 38716f606e6c5559526b37eda4e8eea3604a031a Mon Sep 17 00:00:00 2001 From: Dennis Friis Date: Thu, 8 May 2008 11:46:52 +0000 Subject: make pc_useitem reject to use other than type 0, since this is what we use in TMW. Fixes bug where index based item shortcut (0.0.24.1) will use your items if slot shifted. --- src/map/pc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/map/pc.c b/src/map/pc.c index 4844524..e5d3bfa 100644 --- a/src/map/pc.c +++ b/src/map/pc.c @@ -2996,6 +2996,8 @@ int pc_isUseitem(struct map_session_data *sd,int n) if(item == NULL) return 0; + if (itemdb_type(nameid) != 0) + return 0; if((nameid == 605) && map[sd->bl.m].flag.gvg) return 0; if(nameid == 601 && (map[sd->bl.m].flag.noteleport || map[sd->bl.m].flag.gvg)) { -- cgit v1.2.3-70-g09d2