add a check around the keybinding code to hopefully prevent any errors

This commit is contained in:
Hendrik Leppkes
2008-06-17 13:36:45 +00:00
parent 992e6519ed
commit 4cdfbe6c0f
+3 -1
View File
@@ -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())