From 3d96b0ffff1d652306e5b7728cb60d71c444964b Mon Sep 17 00:00:00 2001 From: shagu Date: Sun, 1 Jun 2025 14:45:32 +0200 Subject: [PATCH] libspell: skip spell index of invalid spells --- libs/libspell.lua | 1 + 1 file changed, 1 insertion(+) 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