summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHaruna <haru@dotalux.com>2015-08-10 05:25:42 +0200
committerHaruna <haru@dotalux.com>2015-08-10 05:25:42 +0200
commit08d4e50fecec0fa03d373e672fe95da1dbf87ab2 (patch)
treec01ce4e413313ce0fdf4c36468306568b0754219
parent62a7e575b45d7955c5100961e3610975857ce81d (diff)
parent5090bdf750017f0d631401edd563c452bd10ec24 (diff)
downloadhercules-08d4e50fecec0fa03d373e672fe95da1dbf87ab2.tar.gz
hercules-08d4e50fecec0fa03d373e672fe95da1dbf87ab2.tar.bz2
hercules-08d4e50fecec0fa03d373e672fe95da1dbf87ab2.tar.xz
hercules-08d4e50fecec0fa03d373e672fe95da1dbf87ab2.zip
Merge pull request #629 from MordekaiserGod/itemsearch-fix
Corrected search order in itemdb_searchname
-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 09303978c..7de99cf7e 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( strcasecmp(item->jname,str) == 0 )
+ if( item2 != 0 && strcasecmp(item->jname,str) == 0 )
item2 = item;
}