Skip to content

Commit

Permalink
If actor serial is missing, use an empty string for GetPlayerInfoByGU…
Browse files Browse the repository at this point in the history
…ID()
  • Loading branch information
Tercioo committed Jul 30, 2024
1 parent dc9d0e8 commit 802c3b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion classes/class_damage.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3416,7 +3416,7 @@ function Details:SetClassIcon(texture, instance, class) --[[exported]] --~icons

local localizedClass, englishClass
if (self.serial ~= "") then
localizedClass, englishClass = GetPlayerInfoByGUID(self.serial)
localizedClass, englishClass = GetPlayerInfoByGUID(self.serial or "")
end

if (englishClass) then
Expand Down

0 comments on commit 802c3b6

Please sign in to comment.