From d9cfb3a09ce8f989d8856c5c5f7ef7a9f0d38db7 Mon Sep 17 00:00:00 2001 From: Parnic Date: Sun, 16 Jul 2023 22:14:23 -1000 Subject: [PATCH] Fix 10.1.5 error building a player menu --- IceHUD.lua | 12 +++++++----- changelog.md | 4 ++++ this_version.md | 4 ++++ 3 files changed, 15 insertions(+), 5 deletions(-) diff --git a/IceHUD.lua b/IceHUD.lua index ec6d585..9d2b7a3 100644 --- a/IceHUD.lua +++ b/IceHUD.lua @@ -886,11 +886,13 @@ local function munge_unit_menu(menu) if btns[i].IsMenu() then local subbtns = btns[i].GetMenuButtons() for j=1, #subbtns do - local blacklisted = BLACKLISTED_UNIT_MENU_OPTIONS[subbtns[j]:GetText()] - if not blacklisted then - new_buttons_list[#new_buttons_list+1] = subbtns[j] - elseif blacklisted ~= true then - new_buttons_list[#new_buttons_list+1] = blacklisted + if subbtns[j] then + local blacklisted = BLACKLISTED_UNIT_MENU_OPTIONS[subbtns[j]:GetText()] + if not blacklisted then + new_buttons_list[#new_buttons_list+1] = subbtns[j] + elseif blacklisted ~= true then + new_buttons_list[#new_buttons_list+1] = blacklisted + end end end else diff --git a/changelog.md b/changelog.md index b4c1026..f5945af 100644 --- a/changelog.md +++ b/changelog.md @@ -1,5 +1,9 @@ # Changelog +v1.14.24: + +- Fixed an error when targeting a player and right-clicking a module that should show a menu in 10.1.5. + v1.14.23: - Update Dragonflight TOC for 10.1.5 diff --git a/this_version.md b/this_version.md index 6df8425..a8445b2 100644 --- a/this_version.md +++ b/this_version.md @@ -1,5 +1,9 @@ # Changelog +v1.14.24: + +- Fixed an error when targeting a player and right-clicking a module that should show a menu in 10.1.5. + v1.14.23: - Update Dragonflight TOC for 10.1.5