Skip to content

Commit 8910e4e

Browse files
committed
Merge branch 'hotfix/death-crash'
2 parents 263d9f3 + ac4a5f4 commit 8910e4e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

game/view/sector.lua

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -462,7 +462,8 @@ function SectorView:draw()
462462
g.pop()
463463

464464
-- Draw energy bars & HP
465-
local focused = ActionHUD.getCurrent():isPlayerFocused()
465+
local action_hud = ActionHUD.getCurrent()
466+
local focused = action_hud and action_hud:isPlayerFocused()
466467
local controlled = sector:getRoute().getControlledActor()
467468
for _, body in ipairs(all_bodies) do
468469
local body_view = self:getBodyView(body)

0 commit comments

Comments
 (0)