fix: 录像 onRecordCommand 钩子参数错误

This commit is contained in:
unanmed 2026-09-17 19:02:47 +08:00
parent 219ac4991d
commit 34ba9e873b

View File

@ -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)
);
}