summaryrefslogtreecommitdiff
path: root/src/map/itemdb.c
diff options
context:
space:
mode:
authorDastgir <dastgirpojee@rocketmail.com>2015-08-12 11:20:12 +0530
committerDastgir <dastgirpojee@rocketmail.com>2015-08-12 11:20:12 +0530
commit10f24ba5b82e7e563cb720a8dea9a415fd8055d7 (patch)
tree854d29dfa5096dcb1e427a2b50b47fdb4601b8b8 /src/map/itemdb.c
parentc63f46ef29310ec846b7fb90e02e93a6abd7abdc (diff)
parentbe8b2eaed13475ae043daa81882e490e78396562 (diff)
downloadhercules-10f24ba5b82e7e563cb720a8dea9a415fd8055d7.tar.gz
hercules-10f24ba5b82e7e563cb720a8dea9a415fd8055d7.tar.bz2
hercules-10f24ba5b82e7e563cb720a8dea9a415fd8055d7.tar.xz
hercules-10f24ba5b82e7e563cb720a8dea9a415fd8055d7.zip
Merge branch 'master' of https://github.com/HerculesWS/Hercules
Diffstat (limited to 'src/map/itemdb.c')
-rw-r--r--src/map/itemdb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/itemdb.c b/src/map/itemdb.c
index 7de99cf7e..644c16a00 100644
--- a/src/map/itemdb.c
+++ b/src/map/itemdb.c
@@ -75,7 +75,7 @@ struct item_data* itemdb_searchname(const char *str) {
return item;
//Second priority to Client displayed name.
- if( item2 != 0 && strcasecmp(item->jname,str) == 0 )
+ if (!item2 && strcasecmp(item->jname,str) == 0)
item2 = item;
}