Skip to content

Commit

Permalink
Added The Following...
Browse files Browse the repository at this point in the history
- Updated to version 2.3.5
- Fixed bug in Tooltip.lua
  - Where local name could still be indexed
  • Loading branch information
tilkinsc committed Dec 20, 2019
1 parent 36ce2ee commit 8a7d449
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Tooltip.lua
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ KiwiItemInfo.ShowEffectiveStats = function(tooltip)
end

local name = selection:GetName()
if(name and name:find("Character") ~= 1 or not name:find("Slot")) then
if(name and (name:find("Character") ~= 1 or not name:find("Slot"))) then
return
end

Expand Down Expand Up @@ -863,7 +863,7 @@ KiwiItemInfo.DisplayItemCompare = function(base_tooltip, tooltip, sel)
local selection = GetMouseFocus()
if(selection ~= nil) then
local name = selection:GetName()
if(name and name:find("Character") == 1 and name:find("Slot")) then
if(name and (name:find("Character") == 1 and name:find("Slot"))) then
return
end
end
Expand Down

0 comments on commit 8a7d449

Please sign in to comment.