diff --git a/libs/libspell.lua b/libs/libspell.lua index 81eaa01..439d26f 100644 --- a/libs/libspell.lua +++ b/libs/libspell.lua @@ -44,6 +44,7 @@ end -- return: [number],[string] spell index and spellbook id local spellindex = {} function libspell.GetSpellIndex(name, rank) + if not name then return end local cache = spellindex[name..(rank or "")] if cache then return cache[1], cache[2] end