Skip to content

Commit

Permalink
Merge pull request #548 from Courseplay/issue-547
Browse files Browse the repository at this point in the history
Added nil check for hotspot
  • Loading branch information
Tensuko authored Feb 9, 2025
2 parents d71bb27 + 29e38dd commit 465847e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/gui/pages/CpCourseGeneratorFrame.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1475,7 +1475,7 @@ function CpCourseGeneratorFrame:setMapSelectionItem(hotspot)

local showContextBox = false
self.currentHotspot = nil
if hotspot ~= nil then
if hotspot ~= nil and hotspot.isa ~= nil then
local vehicle = InGameMenuMapUtil.getHotspotVehicle(hotspot)
if vehicle ~= nil and not vehicle.spec_rideable then
playerName = nil
Expand Down

0 comments on commit 465847e

Please sign in to comment.