Commit 51bff5af authored by Jonathan Michalon's avatar Jonathan Michalon

server: fix warning if player is connected but didn't join a game yet

parent e13932a4
......@@ -57,7 +57,7 @@ public class Client: Object
{
signal_handle = null; /* to break circular reference */
if (game != null) {
if (game != null && player.game != null) {
game.remove_player (player);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment