Skip to content
This repository was archived by the owner on Feb 7, 2024. It is now read-only.

Commit a9e4fd9

Browse files
committed
Fix native splicing as well
1 parent 08dd750 commit a9e4fd9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/native/utils/game-loop.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,6 @@ export default class GameLoop {
2222
return this.subscribers.push(callback);
2323
}
2424
unsubscribe(id) {
25-
this.subscribers.splice((id - 1), 1);
25+
this.subscribers.splice(this.subscribers.indexOf(id), 1);
2626
}
2727
}

0 commit comments

Comments
 (0)