Skip to content

Commit

Permalink
Add additional check for empty string on IsInGroup
Browse files Browse the repository at this point in the history
Fixes #27
  • Loading branch information
Sharparam committed Dec 20, 2023
1 parent b09f87d commit 42d225e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion KillTrack.lua
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ function KT:ToggleDebug()
end

function KT:IsInGroup(unit)
if not unit then return false end
if not unit or unit == "" then return false end
if unit == self.PlayerName or unit == self.PlayerGUID then return true end
return IsGUIDInGroup(unit)
end
Expand Down

0 comments on commit 42d225e

Please sign in to comment.