From 34ba9e873b9e39b15a4ce0ba53bb880751a36be5 Mon Sep 17 00:00:00 2001 From: unanmed <1319491857@qq.com> Date: Thu, 17 Sep 2026 19:02:47 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=BD=95=E5=83=8F=20onRecordCommand=20?= =?UTF-8?q?=E9=92=A9=E5=AD=90=E5=8F=82=E6=95=B0=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages-user/data-common/src/replay/system.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages-user/data-common/src/replay/system.ts b/packages-user/data-common/src/replay/system.ts index 235cfcb..afddb7f 100644 --- a/packages-user/data-common/src/replay/system.ts +++ b/packages-user/data-common/src/replay/system.ts @@ -63,7 +63,7 @@ export class ReplaySystem record(code: number, ...params: ReplayParamValue[]): void { this.route.add(code, params); this.forEachHook(hook => - hook.onRecordCommand?.(code, this.route.length, params) + hook.onRecordCommand?.(code, this.route.length - 1, params) ); }