mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2025-02-19 04:20:04 +00:00
Fix variable being declared too late
This commit is contained in:
parent
c9589ad0e7
commit
5f0addbc3e
@ -325,9 +325,9 @@ local function completeProgram( sLine )
|
|||||||
-- Add all subdirectories. We don't include files as they will be added in the block below
|
-- Add all subdirectories. We don't include files as they will be added in the block below
|
||||||
local tDirs = fs.complete( sLine, sDir, false, false )
|
local tDirs = fs.complete( sLine, sDir, false, false )
|
||||||
for i = 1, #tDirs do
|
for i = 1, #tDirs do
|
||||||
|
local sResult = tDirs[i]
|
||||||
if not tSeen[ sResult ] then
|
if not tSeen[ sResult ] then
|
||||||
local sResult = tDirs[i]
|
table.insert ( tResults, sResult )
|
||||||
table.insert (tResults, sResult )
|
|
||||||
tSeen [ sResult ] = true
|
tSeen [ sResult ] = true
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user