Skip to content

Commit

Permalink
Fixes small gui bug
Browse files Browse the repository at this point in the history
Fixed bug where the field selection wasn't working after opening the menu from the hud.
  • Loading branch information
schwiti6190 committed Mar 31, 2022
1 parent 1dc8ba9 commit 498cf0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/gui/hud/CpBaseHud.lua
Original file line number Diff line number Diff line change
Expand Up @@ -468,7 +468,7 @@ function CpBaseHud:openCourseGeneratorGui(vehicle)
self:debug("opened ai inGame menu job %s.", job:getDescription())
pageAI.currentJob = nil
pageAI:setActiveJobTypeSelection(jobTypeIndex)
pageAI.currentJob:applyCurrentState(vehicle, g_currentMission, g_currentMission.player.farmId, true)
pageAI.currentJob:applyCurrentState(vehicle, g_currentMission, g_currentMission.player.farmId, false)
pageAI:updateParameterValueTexts()
pageAI:validateParameters()
--- Fixes the job selection gui element.
Expand Down

0 comments on commit 498cf0d

Please sign in to comment.