From 97a95a02000025619f4ecc6ab0c4c2f52512f7c9 Mon Sep 17 00:00:00 2001 From: Gregg Tavares Date: Tue, 2 Dec 2014 12:18:26 -0800 Subject: [PATCH] start id at 0 instead of 1 --- server/game-group.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/game-group.js b/server/game-group.js index 5d646e42..f85cfed9 100644 --- a/server/game-group.js +++ b/server/game-group.js @@ -50,7 +50,7 @@ var GameGroup = function(gameId, relayServer, options) { this.runtimeInfo = gameDB.getGameById(gameId); this.relayServer = relayServer; this.games = []; // first game is the "master" - this.nextGameId = 1; + this.nextGameId = 0; // start at 0 because it's easy to switch games with (gameNum + numGames + dir) % numGames }; GameGroup.prototype.getGameById = function(id) {