Skip to content

Commit

Permalink
Fix crash on removing last player
Browse files Browse the repository at this point in the history
  • Loading branch information
Jordan Johnson committed Jun 28, 2017
1 parent 474888f commit dc808c1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion server.js
Original file line number Diff line number Diff line change
Expand Up @@ -276,8 +276,9 @@ class GameRoom {
}
if(this.players.length <= 0) {
destroyRoom(this.name);
} else {
this.update();
}
this.update();
}

// Make sure player does not spawn in a wall.
Expand Down

0 comments on commit dc808c1

Please sign in to comment.