From ad2ae0a752ff6c665a9ea9810f4442353925d81e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jannes=20H=C3=B6ke?= Date: Fri, 3 Jun 2016 08:00:13 +0200 Subject: [PATCH] remove player even if its not registered in player list of user (fix) --- game_manager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/game_manager.py b/game_manager.py index e1a2fc0..2eecfc9 100644 --- a/game_manager.py +++ b/game_manager.py @@ -104,7 +104,7 @@ class GameManager(object): if not player: games = self.chatid_games[chat.id] for g in games: - for p in g: + for p in g.players: if p.user.id == user.id: if p is g.current_player: g.turn()