From 88c45d8b8bf78371fa45013a772a88da67258a15 Mon Sep 17 00:00:00 2001 From: Cooldude2606 Date: Sun, 22 Oct 2017 00:17:04 +0100 Subject: [PATCH] fixed sprite path bug --- locale/ExpGaming-Core/GUI/ExpGaming - Inputs.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/locale/ExpGaming-Core/GUI/ExpGaming - Inputs.lua b/locale/ExpGaming-Core/GUI/ExpGaming - Inputs.lua index 93e24edc..ce1a80c2 100644 --- a/locale/ExpGaming-Core/GUI/ExpGaming - Inputs.lua +++ b/locale/ExpGaming-Core/GUI/ExpGaming - Inputs.lua @@ -29,7 +29,7 @@ function add_input.draw_button(frame,name,display,tooltip) local button = inputs.buttons[name] local display = display or button.display or {'expgui.button-no-display'} local tooltip = tooltip or button.tooltip or {'expgui.button-no-tooltip'} - if frame.gui.is_valid_sprite_path(display) then + if type(display) == 'string' and frame.gui.is_valid_sprite_path(display) then frame.add{name=name, type = "sprite-button", sprite=display, tooltip=tooltip, style = mod_gui.button_style} else frame.add{name=name, type = "button", caption=display, tooltip=tooltip, style = mod_gui.button_style}