1
0
mirror of https://github.com/jvmguy/JvmguyScenario.git synced 2024-11-24 08:32:44 +02:00

local variable declaration needed.

This commit is contained in:
Kevin Morgan 2020-10-20 06:04:22 -07:00
parent 95122a8a5f
commit b0877d09f3

View File

@ -349,7 +349,7 @@ function PickRandomSpawn( t, far )
-- player.print("choosing a spawn from " .. ncandidates .. " candidates");
if ncandidates > 0 then
local pick = math.random(1,ncandidates)
spawnPos = candidates[pick];
local spawnPos = candidates[pick];
-- player.print("chose " .. spawnPos.x .. "," .. spawnPos.y .. " distance " .. spawnPos.dist);
return spawnPos;
end