From 4cdfbe6c0f84dc2fc575b905f5e83db8234b5ef3 Mon Sep 17 00:00:00 2001 From: Hendrik Leppkes Date: Tue, 17 Jun 2008 13:36:45 +0000 Subject: [PATCH] add a check around the keybinding code to hopefully prevent any errors --- ActionBars.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ActionBars.lua b/ActionBars.lua index 8c34108..399c7b5 100644 --- a/ActionBars.lua +++ b/ActionBars.lua @@ -196,7 +196,9 @@ function BT4ActionBars:ReassignBindings() for k=1, select('#', GetBindingKey(button)) do local key = select(k, GetBindingKey(button)) - SetBindingClick(key, real_button, "LeftButton") + if key and key ~= "" then + SetBindingClick(key, real_button, "LeftButton") + end end end SaveBindings(GetCurrentBindingSet())