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