nil check for poisoned

This commit is contained in:
tenplus1 2020-07-31 18:42:11 +01:00
parent d0c0e4c78a
commit ed153b9e60

View File

@ -276,7 +276,8 @@ end
player:set_hp(hp, {poison = true})
end
elseif stamina.players[name].poisoned then
elseif stamina.players[name]
and stamina.players[name].poisoned then
player:hud_change(stamina.players[name].hud_id,
"text", "stamina_hud_fg.png")