From 6df1a9b93c36c7db6c7a70980e635caf59df80fc Mon Sep 17 00:00:00 2001 From: lotodore Date: Sun, 18 Dec 2011 23:17:36 +0000 Subject: [PATCH] Fixing use of wrong player id. --- src/net/common/servergamestate.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/net/common/servergamestate.cpp b/src/net/common/servergamestate.cpp index 6b5dbc03..fee241d9 100644 --- a/src/net/common/servergamestate.cpp +++ b/src/net/common/servergamestate.cpp @@ -958,7 +958,7 @@ ServerGameStateHand::EngineLoop(boost::shared_ptr server) if (curPlayer->getTimeSecSinceLastRemoteAction() >= actionTimeout * SERVER_GAME_AUTOFOLD_TIMEOUT_FACTOR) { if (curPlayer->isSessionActive()) { curPlayer->setIsSessionActive(false); - boost::shared_ptr session = server->GetSessionManager().GetSessionByUniquePlayerId(server->GetAdminPlayerId()); + boost::shared_ptr session = server->GetSessionManager().GetSessionByUniquePlayerId(curPlayer->getMyUniqueID()); if (session) { boost::shared_ptr packet(new NetPacket(NetPacket::Alloc)); packet->GetMsg()->present = PokerTHMessage_PR_timeoutWarningMessage;