Skip to content

Commit

Permalink
Fix crash in mission list in hyper space when combat mission
Browse files Browse the repository at this point in the history
  • Loading branch information
impaktor committed Aug 1, 2024
1 parent 8a84b93 commit 66e0d48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion data/pigui/modules/info-view/04-missions.lua
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ local function makeMissionRows()

-- Use AU for interplanetary, LY for interstellar distances
local dist, dist_display
if mission.location:IsSameSystem(playerSystem.path) then
if mission.location:IsSameSystem(playerSystem.path) and not Game.InHyperspace() then
if mission.location:IsBodyPath() then
local body = mission.location:GetSystemBody().body
dist = Game.player:GetPositionRelTo(body):length()
Expand Down

0 comments on commit 66e0d48

Please sign in to comment.