From b555a598014b5086a3ea28a3d0baf1a5f59650d6 Mon Sep 17 00:00:00 2001 From: Andrew Ward Date: Thu, 7 Nov 2013 09:02:05 +0000 Subject: [PATCH] Fix awards.tbv --- api.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api.lua b/api.lua index ecbc48c..243f2a6 100644 --- a/api.lua +++ b/api.lua @@ -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