Skip to content

Commit 0889110

Browse files
committed
Fixed decrement condition issue
1 parent c2f9ef4 commit 0889110

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

wss/src/room.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ class Room {
109109

110110
private decrementConditions() {
111111
let prev;
112-
if (this.activeInitiative - < 0) {
112+
if (this.activeInitiative - 1 < 0) {
113113
prev = this.initiative[this.initiative.length - 1];
114114
} else {
115115
prev = this.initiative[this.activeInitiative - 1];

0 commit comments

Comments
 (0)