fix another hudbars crash

This commit is contained in:
Jordan Snelling 2018-02-14 17:10:06 +00:00
parent 08558a37a3
commit 6f447fa1f8

View File

@ -377,6 +377,7 @@ function hb.hide_hudbar(player, identifier)
local name = player:get_player_name()
local hudtable = hb.get_hudtable(identifier)
if hudtable == nil then return false end
if hudtable.hudstate[name] == nil then return false end
if(hudtable.hudstate[name].hidden == false) then
if hb.settings.bar_type == "progress_bar" then
if hudtable.hudids[name].icon ~= nil then