Skip to content

Commit

Permalink
Achievements: Don't try to query player/empty guid
Browse files Browse the repository at this point in the history
  • Loading branch information
sylvanaar committed Jun 22, 2020
1 parent b360beb commit da5a0f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/Achievements.lua
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ end

local text, theirId, theirPlayerGuid, theirDone, theirMonth, theirDay, theirYear, _, _, _, _, theirAchievmentName, frame = ...

if not (tostring(theirPlayerGuid):len() > 3) then return end
if theirPlayerGuid == "0000000000000000" or not (tostring(theirPlayerGuid):len() > 3) then return end

local id, name, points, completed, month, day, year, description, flags, icon, rewardText, isGuildAch, wasEarnedByMe, earnedBy = GetAchievementInfo(theirId)

Expand Down

0 comments on commit da5a0f5

Please sign in to comment.