fix 'attempt to index a nil value (global self)'

This commit is contained in:
BarbUk 2017-01-24 22:45:51 +04:00
parent 8ba5f4a7ef
commit dd9d9b8076

View file

@ -42,7 +42,7 @@ end
function tpbat.show(t_out)
tpbat.hide()
local bat = self.bat
local bat = tpbat.bat
if bat == nil or not bat:installed() then return end