From 6d4473bec563323932bb75d20760cc588897d07f Mon Sep 17 00:00:00 2001 From: Cooldude2606 Date: Mon, 1 Jan 2018 23:56:28 +0000 Subject: [PATCH] Fixed Bug In Center Gui --- ExpCore/GuiParts/center.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ExpCore/GuiParts/center.lua b/ExpCore/GuiParts/center.lua index 8036d536..3b13fa19 100644 --- a/ExpCore/GuiParts/center.lua +++ b/ExpCore/GuiParts/center.lua @@ -50,7 +50,7 @@ function center._center.open(event) direction='vertical', style=mod_gui.frame_style } - if player.gui.is_valid_sprite_path(center_frame.caption) then center_frame.caption = '' end + if is_type(center_frame.caption,'string') and player.gui.is_valid_sprite_path(center_frame.caption) then center_frame.caption = '' end if is_type(_center.draw,'function') then local success, err = pcall(_center.draw,_center,center_frame) if not success then error(err) end