Skip to content

Commit

Permalink
Fixed a possible Lua error when giving lead
Browse files Browse the repository at this point in the history
  • Loading branch information
linaori committed Apr 14, 2024
1 parent 46fbb8a commit c716602
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions BattlegroundTools.lua
Original file line number Diff line number Diff line change
Expand Up @@ -647,6 +647,8 @@ function Private.CanRequestLead()
end

function Private.PromoteToLeader(playerData)
if not playerData.units.primary then return end

PromoteToLeader(playerData.units.primary)

local mem = Memory.WantBattlegroundLead
Expand Down
6 changes: 6 additions & 0 deletions Changelog.lua
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
local _, Namespace = ...

Namespace.Changelog = {
{
version = '10.2.6-48',
bugs = {
'Fixed a possible Lua error when giving lead',
},
},
{
version = '10.2.6-47',
improvements = {
Expand Down

0 comments on commit c716602

Please sign in to comment.