forked from mtcontrib/awards
Fix awards.tbv
This commit is contained in:
parent
ee438e31f8
commit
b555a59801
4
api.lua
4
api.lua
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user