Assert if class not provided

This commit is contained in:
Fesiug 2023-12-21 03:50:19 -05:00
parent d0cbbf06d4
commit 05fd1908bf
1 changed files with 1 additions and 0 deletions

View File

@ -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