diff options
Diffstat (limited to 'server/src/core/diagnostics.lua')
-rw-r--r-- | server/src/core/diagnostics.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/src/core/diagnostics.lua b/server/src/core/diagnostics.lua index 64852f03..a00e0d52 100644 --- a/server/src/core/diagnostics.lua +++ b/server/src/core/diagnostics.lua @@ -41,7 +41,7 @@ end function mt:searchUndefinedGlobal(callback) local results = self.results local env = results.locals[1] - for index, field in pairs(env.value.child) do + env.value:eachField(function (index, field) if field.value.lib then goto NEXT_VAR end @@ -66,7 +66,7 @@ function mt:searchUndefinedGlobal(callback) end end ::NEXT_VAR:: - end + end) end function mt:searchUnusedLabel(callback) |