1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2024-11-05 01:50:25 +01:00

Fix crashing hudbars

- Solves #127
This commit is contained in:
LeMagnesium 2015-07-14 19:40:11 +02:00
parent 64ff460668
commit e6168f84ba

View File

@ -251,7 +251,7 @@ end
function hb.unhide_hudbar(player, identifier)
local name = player:get_player_name()
local hudtable = hb.get_hudtable(identifier)
if(hudtable.hudstate[name].hidden) then
if(hudtable.hudstate[name] and hudtable.hudstate[name].hidden) then
local name = player:get_player_name()
local value = hudtable.hudstate[name].value
local max = hudtable.hudstate[name].max