forked from github/server
work in progress
This commit is contained in:
parent
bd5f6e5683
commit
eb35aab047
|
@ -179,6 +179,11 @@ find_spellbyid(spellid_t id)
|
|||
spell* sp = slist->data;
|
||||
if (sp->id == id) return sp;
|
||||
}
|
||||
for (slist=spells;slist!=NULL;slist=slist->next) {
|
||||
spell* sp = slist->data;
|
||||
int hashid = hashstring(sp->sname);
|
||||
if (hashid == id) return sp;
|
||||
}
|
||||
|
||||
log_warning(("cannot find spell by id: %u\n", id));
|
||||
return NULL;
|
||||
|
|
Loading…
Reference in New Issue