From c716602c7b9690e418f9b714f797b94766da9c48 Mon Sep 17 00:00:00 2001 From: Lynn Date: Sun, 14 Apr 2024 20:04:08 +0200 Subject: [PATCH] Fixed a possible Lua error when giving lead --- BattlegroundTools.lua | 2 ++ Changelog.lua | 6 ++++++ 2 files changed, 8 insertions(+) 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 = {