1
0
mirror of https://gitlab.com/rubenwardy/awards.git synced 2024-12-28 11:40:38 +01:00

Fix awards.tbv

This commit is contained in:
Andrew Ward 2013-11-07 09:02:05 +00:00
parent ee438e31f8
commit b555a59801

View File

@ -39,8 +39,8 @@ function awards.tbv(tb,value,default)
if not default then if not default then
default = {} default = {}
end end
if not tb then if not tb or type(tb) ~= "table" then
print("Table not defined!") print("Table is null, or not a table!")
return return
end end
if not tb[value] then if not tb[value] then