From b0877d09f37d5f0a1065e7574df193139d782758 Mon Sep 17 00:00:00 2001 From: Kevin Morgan Date: Tue, 20 Oct 2020 06:04:22 -0700 Subject: [PATCH] local variable declaration needed. --- lib/separate_spawns_guis.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/separate_spawns_guis.lua b/lib/separate_spawns_guis.lua index 81b9247..0563c5c 100644 --- a/lib/separate_spawns_guis.lua +++ b/lib/separate_spawns_guis.lua @@ -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