diff options
author | Andrew Ward <anjayward@gmail.com> | 2013-11-07 09:02:05 +0000 |
---|---|---|
committer | Andrew Ward <anjayward@gmail.com> | 2013-11-07 09:02:05 +0000 |
commit | b555a598014b5086a3ea28a3d0baf1a5f59650d6 (patch) | |
tree | 04bceead8a8624c4ca13eaca034d31d6330fdfea | |
parent | ee438e31f8d714ce3b83fabfc5ce400b6e03a35a (diff) |
Fix awards.tbv
-rw-r--r-- | api.lua | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -39,8 +39,8 @@ function awards.tbv(tb,value,default) if not default then default = {} end - if not tb then - print("Table not defined!") + if not tb or type(tb) ~= "table" then + print("Table is null, or not a table!") return end if not tb[value] then |