bugfix for incorrect logic in game creation

This commit is contained in:
sm
2013-10-18 23:56:06 -07:00
parent c80acb478b
commit c074397c1f
3 changed files with 18 additions and 9 deletions
+3 -2
View File
@@ -99,10 +99,11 @@ func addPlayer(ws *websocket.Conn) {
return
}
game, err := games.getOrCreate(gid.Id)
force := *debug
game, err := games.get(gid.Id, force)
if err != nil {
log.Printf("ERROR: game %s not found", gid.Id)
log.Printf("ERROR: game '%s' not found", gid.Id)
websocket.JSON.Send(ws, NewFailure("game 404"))
return
}