From cd4b06a996c0a08952d481116a22ffb9a0724826 Mon Sep 17 00:00:00 2001 From: Cooldude2606 Date: Sun, 30 Dec 2018 18:13:43 +0000 Subject: [PATCH] Fixed Role not returning --- modules/ExpGamingCore/Role/control.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/ExpGamingCore/Role/control.lua b/modules/ExpGamingCore/Role/control.lua index ad3e0864..c4773350 100644 --- a/modules/ExpGamingCore/Role/control.lua +++ b/modules/ExpGamingCore/Role/control.lua @@ -303,7 +303,7 @@ function Role.debug_output(role,player) end if role then local role = Role.get(mixed) - if not type_error(roles,'table','Invalid argument #1 to Role.print, role is invalid.') then return end + if not type_error(role,'table','Invalid argument #1 to Role.print, role is invalid.') then return end _output(role) else for index,_role in pairs(Role.roles) do _output(_role) end end end @@ -520,4 +520,4 @@ end) -- Module Return -- calling will attempt to define a new role -return setmetatable(Role,{__call=function(tbl,...) tbl.define(...) end}) \ No newline at end of file +return setmetatable(Role,{__call=function(tbl,...) return tbl.define(...) end}) \ No newline at end of file