Small Changes

This commit is contained in:
Cooldude2606
2018-10-14 18:09:17 +01:00
parent 48b036f395
commit 9309233c89
2 changed files with 3 additions and 1 deletions

View File

@@ -119,6 +119,7 @@ end
function Role.assign(player,role,by_player,batch)
local player = Game.get_player(player)
if not player then error('Invalid player #1 given to Role.assign.',2) return end
if not role then return end
-- this loops over a table of role if given; will return if ipairs returns, else will asume it was ment to be a role and error
if is_type(role,'table') and not role.name then
local ctn = 0