From eb35aab047585c7a8b8f1700601cf28930681dd7 Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Sun, 1 Jan 2006 19:40:01 +0000 Subject: [PATCH] work in progress --- src/common/kernel/spell.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/common/kernel/spell.c b/src/common/kernel/spell.c index 70aaa5bab..b9cf7b42c 100644 --- a/src/common/kernel/spell.c +++ b/src/common/kernel/spell.c @@ -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;