diff options
author | Rubenwardy <anjayward@gmail.com> | 2013-11-12 19:33:19 +0000 |
---|---|---|
committer | Rubenwardy <anjayward@gmail.com> | 2013-11-12 19:33:19 +0000 |
commit | 6387bd1d9e128c23bd47b1bbf0544362f8fdbfba (patch) | |
tree | 020b716219b88bf5809bb6cbc3ac1dced66437ce /api.lua | |
parent | 3a0bc67d1be20bfe1f856b5c7fbeaffbf2bc9887 (diff) |
Fix playern variable bug
Diffstat (limited to 'api.lua')
-rw-r--r-- | api.lua | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -35,10 +35,11 @@ end -- A table of award definitions awards.def = {} -function awards.tbv(tb,value,default) - if not default then - default = {} - end +function awards.tbv(tb,value) + awards.tbv_default(tb,value,{}) +end + +function awards.tbv_default(tb,value,default) if not tb or type(tb) ~= "table" then if not value then value = "[NULL]" |