From 9a2f08c21c5e18842846427e086d8962c5d4a2c7 Mon Sep 17 00:00:00 2001 From: Cooldude2606 Date: Thu, 28 Dec 2017 15:36:49 +0000 Subject: [PATCH] Fixed caption on center frame when icon --- ExpCore/GuiParts/center.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/ExpCore/GuiParts/center.lua b/ExpCore/GuiParts/center.lua index 42e149f3..34d829cc 100644 --- a/ExpCore/GuiParts/center.lua +++ b/ExpCore/GuiParts/center.lua @@ -50,6 +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.draw,'function') then local success, err = pcall(_center.draw,_center,center_frame) if not success then error(err) end