Skip to content
This repository has been archived by the owner on May 23, 2023. It is now read-only.

Commit

Permalink
fixes #7428
Browse files Browse the repository at this point in the history
  • Loading branch information
schwiti6190 committed Aug 15, 2021
1 parent 512874e commit b511555
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion base.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1243,8 +1243,9 @@ function courseplay.onStartCpAIDriver(vehicle,helperIndex,noEventSend, startedFa
end
end

--- Adds a new Helper if needed.
function courseplay.addNewHelper(currentHelper)
while(currentHelper == nil and currentHelper.index~=nil) do
while(currentHelper == nil or currentHelper.index~=nil) do
--- Default helpers are index 1-10
local index = math.random(1,10)
local source = g_helperManager:getHelperByIndex(index)
Expand Down

0 comments on commit b511555

Please sign in to comment.