From 51318ed3dbe4f743213e71a50fd042e15665abca Mon Sep 17 00:00:00 2001 From: lvchangye <36872939+lvchangye@users.noreply.github.com> Date: Fri, 31 Mar 2023 15:06:23 +0800 Subject: [PATCH] Fix paths's index bug --- src/debugger/LuaDebug.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/debugger/LuaDebug.ts b/src/debugger/LuaDebug.ts index 5dcc2e2..6971249 100644 --- a/src/debugger/LuaDebug.ts +++ b/src/debugger/LuaDebug.ts @@ -470,7 +470,7 @@ export class LuaDebug extends DebugSession { let serverPathsCount = serverPaths.length let clientPathsCount = clientPaths.length while (true) { - if (clientPaths[clientPathsCount--] != serverPaths[serverPathsCount--]) { + if (clientPaths[--clientPathsCount] != serverPaths[--serverPathsCount]) { isHit = false break } else { @@ -678,4 +678,4 @@ export class LuaDebug extends DebugSession { } -DebugSession.run(LuaDebug) \ No newline at end of file +DebugSession.run(LuaDebug)