We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 263d9f3 + ac4a5f4 commit 8910e4eCopy full SHA for 8910e4e
game/view/sector.lua
@@ -462,7 +462,8 @@ function SectorView:draw()
462
g.pop()
463
464
-- Draw energy bars & HP
465
- local focused = ActionHUD.getCurrent():isPlayerFocused()
+ local action_hud = ActionHUD.getCurrent()
466
+ local focused = action_hud and action_hud:isPlayerFocused()
467
local controlled = sector:getRoute().getControlledActor()
468
for _, body in ipairs(all_bodies) do
469
local body_view = self:getBodyView(body)
0 commit comments