Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion LoadHUD.lua
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ LoadHUD.average_cnt = 60
LoadHUD.values = {}

function LoadHUD:draw()
if g_client ~= nil and g_currentMission.hud.isVisible and g_currentMission.controlledVehicle ~= nil then
if g_client ~= nil and g_currentMission.hud.isVisible and g_currentMission.controlledVehicle ~= nil and g_currentMission.controlledVehicle.rootVehicle ~= nil then

-- calculate position and size
local posX = g_currentMission.inGameMenu.hud.speedMeter.gaugeCenterX
Expand Down