Assert if class not provided
This commit is contained in:
parent
d0cbbf06d4
commit
05fd1908bf
|
@ -158,6 +158,7 @@ function SWEP:GetStat( hand, stat )
|
|||
end
|
||||
|
||||
function BENNY_GetStat( class, stat )
|
||||
assert( class, "No class" )
|
||||
local thereturn = (class[stat] or fallbackstat[stat])
|
||||
assert( thereturn, "No stat for " .. stat )
|
||||
return thereturn
|
||||
|
|
Loading…
Reference in New Issue