Commit 90a0b3fa19ec44ab93d91a0e72cef544843f219a

Authored by dg
1 parent d00b31bd

fix


git-svn-id: http://svn.net-core.org/repos/t-engine4@3368 51575b47-30f0-44d4-a5cc-537603b46e54
... ... @@ -441,7 +441,7 @@ newInscription{
441 441 tactical = { BUFF = 4 },
442 442 on_pre_use = function(self, t)
443 443 local ok, data = pcall(self.getInscriptionData, self, t.short_name)
444   - return ok and data.nb_uses > 0
  444 + return ok and data and data.nb_uses and data.nb_uses > 0
445 445 end,
446 446 action = function(self, t)
447 447 local data = self:getInscriptionData(t.short_name)
... ...