diff --git a/BattlegroundTools.lua b/BattlegroundTools.lua index 8fa0f56..4df8363 100644 --- a/BattlegroundTools.lua +++ b/BattlegroundTools.lua @@ -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 diff --git a/Changelog.lua b/Changelog.lua index ad51902..3b258e6 100644 --- a/Changelog.lua +++ b/Changelog.lua @@ -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 = {