Fixed Role not returning

This commit is contained in:
Cooldude2606
2018-12-30 18:13:43 +00:00
parent 65b393fa27
commit cd4b06a996

View File

@@ -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})
return setmetatable(Role,{__call=function(tbl,...) return tbl.define(...) end})