Skip to content

Commit d7d23a5

Browse files
committed
Fix wrong JoinGame method called
1 parent 5986eb2 commit d7d23a5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

templates/new/client/Game.cs.tmpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ public partial class Game : IDisposable
171171
{
172172
var socket = await GameSocket.Create(URL);
173173
var gameId = await socket.CreateGame(makePublic, config);
174-
return await JoinGame(gameId, username);
174+
return await JoinGame(socket, gameId, username);
175175
}
176176

177177
/// <summary>
@@ -189,7 +189,7 @@ public partial class Game : IDisposable
189189
{
190190
var socket = await GameSocket.Create(URL);
191191
var (gameId, joinSecret) = await socket.CreateProtectedGame(makePublic, config);
192-
return (await JoinGame(gameId, username, joinSecret), joinSecret);
192+
return (await JoinGame(socket, gameId, username, joinSecret), joinSecret);
193193
}
194194

195195
/// <summary>

0 commit comments

Comments
 (0)