work in progress

This commit is contained in:
Enno Rehling 2006-01-01 19:40:01 +00:00
parent bd5f6e5683
commit eb35aab047
1 changed files with 5 additions and 0 deletions

View File

@ -179,6 +179,11 @@ find_spellbyid(spellid_t id)
spell* sp = slist->data; spell* sp = slist->data;
if (sp->id == id) return sp; 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)); log_warning(("cannot find spell by id: %u\n", id));
return NULL; return NULL;