summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDennis Friis <peavey@placid.dk>2008-05-08 11:46:52 +0000
committerDennis Friis <peavey@placid.dk>2008-05-08 11:46:52 +0000
commit38716f606e6c5559526b37eda4e8eea3604a031a (patch)
treefab6d9af0f8eb7a0fe7482f52cab4e331c2a8884 /src
parent1a9b53b8f1890c004e2660e8f82ad3ac705a8fb9 (diff)
downloadtmwa-38716f606e6c5559526b37eda4e8eea3604a031a.tar.gz
tmwa-38716f606e6c5559526b37eda4e8eea3604a031a.tar.bz2
tmwa-38716f606e6c5559526b37eda4e8eea3604a031a.tar.xz
tmwa-38716f606e6c5559526b37eda4e8eea3604a031a.zip
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.
Diffstat (limited to 'src')
-rw-r--r--src/map/pc.c2
1 files changed, 2 insertions, 0 deletions
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)) {