Skip to content

Commit

Permalink
* Fixed a Lua bug with the Social widget that occurred when guild ros…
Browse files Browse the repository at this point in the history
…ter data was not available locally [GH-536].
  • Loading branch information
Backupiseasy committed Jul 28, 2024
1 parent 7668c41 commit 3cd1da7
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
5 changes: 2 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# @project-version@ (@build-time@)

* Fixed a bug that prevented combo points from being displayed on rogues in WoW Classic [comment #7369, GH-535].
* Fixed a bug that prevented the size of the healthbar from being changed in WoW Classic [comment #7375].
* Updated TOC version for Classic Patch 1.15.3.
* Removed a fix for hiding Blizzard nameplates that was added as a workaround when nameplate unit frames were protected from combat in TWW Beta.
* Fixed a Lua bug with the Social widget that occurred when guild roster data was not available locally [GH-536].
3 changes: 2 additions & 1 deletion TidyPlates_ThreatPlates_Changes.log
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
------------------------------------------------------
12.0.2 (2024-07-25)
12.0.3 (2024-07-28)
------------------------------------------------------
* Removed a fix for hiding Blizzard nameplates that was added as a workaround when nameplate unit frames were protected from combat in TWW Beta.
* Fixed a Lua bug with the Social widget that occurred when guild roster data was not available locally [GH-536].

------------------------------------------------------
12.0.1 (2024-07-25)
Expand Down
10 changes: 7 additions & 3 deletions Widgets/SocialWidget.lua
Original file line number Diff line number Diff line change
Expand Up @@ -139,13 +139,17 @@ function Widget:GUILD_ROSTER_UPDATE()
if numTotalGuildMembers < ListGuildMembersSize then
ListGuildMembers = {}
end


local no_guild_members_with_info = 0
for i = 1, numTotalGuildMembers do
local name, rank, rankIndex, level, classDisplayName, zone, note, officernote, isOnline, _ = GetGuildRosterInfo(i)
ListGuildMembers[name] = ICON_GUILDMATE
if name then
ListGuildMembers[name] = ICON_GUILDMATE
no_guild_members_with_info = no_guild_members_with_info + 1
end
end

ListGuildMembersSize = numTotalGuildMembers
ListGuildMembersSize = no_guild_members_with_info

self:UpdateAllFramesAndNameplateColor()
end
Expand Down

0 comments on commit 3cd1da7

Please sign in to comment.