fix timer clear method with do not reassign actions pointer

This commit is contained in:
Yanzhen Yu
2026-04-01 12:00:00 +08:00
parent 72ed0ebc9f
commit 4e636e1b6e

View File

@@ -49,7 +49,7 @@ export default class Timer {
}
public clear() {
this.actions = [];
this.actions.length = 0;
}
private findActionIndex(action: actionWithDelay): number {