From 37c461e220f165d2d7e58528d3c17373a62b5ea3 Mon Sep 17 00:00:00 2001 From: Adrian L Lange Date: Tue, 2 Oct 2012 09:24:04 +0300 Subject: [PATCH] Some tweaks to update and checks --- Collie.lua | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Collie.lua b/Collie.lua index 61e2410..1cc12b6 100644 --- a/Collie.lua +++ b/Collie.lua @@ -25,8 +25,6 @@ end) local mounts = {} local function BuildMounts(self, event) - if(event and event ~= 'COMPANION_LEARNED') then return end - for index = 1, GetNumCompanions('MOUNT') do local id, name, _, _, _, flag = GetCompanionInfo('MOUNT', index) if(flag == 12) then @@ -71,7 +69,7 @@ function MountJournal_UpdateMountList() for index = 1, total do local id, name, spell, icon, active, flag = GetCompanionInfo('MOUNT', index) - if(name:lower():find(filter) and filterFlags[mounts[index]]) then + if(name and name:lower():find(filter) and filterFlags[mounts[index]]) then table.insert(filterTable, index) end end -- 1.7.9.5