mirror of
https://github.com/AndrioCelos/TableturfBattleApp.git
synced 2026-08-23 11:24:03 -05:00
Fix 400 error when starting a new game
This commit is contained in:
@@ -66,7 +66,7 @@ internal class Program {
|
||||
var game = new Game(9, 26);
|
||||
game.Board[4, 4] = Space.SpecialInactive2;
|
||||
game.Board[4, 21] = Space.SpecialInactive1;
|
||||
game.Players[0] = new(name, clientToken);
|
||||
game.Players.Add(new(name, clientToken));
|
||||
games.Add(game.ID, game);
|
||||
|
||||
SetResponse(e.Response, (int) HttpStatusCode.OK, "application/json", JsonConvert.SerializeObject(new { gameID = game.ID, clientToken }));
|
||||
|
||||
Reference in New Issue
Block a user