From 25779efe3db2eef44ef3f6a4fa5751a66986b7c9 Mon Sep 17 00:00:00 2001 From: lotodore Date: Tue, 30 Mar 2010 20:02:26 +0000 Subject: [PATCH] Fixing a bug where a wrong callback was called. --- src/net/common/clientstate.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/net/common/clientstate.cpp b/src/net/common/clientstate.cpp index eabe9edc..0293385d 100644 --- a/src/net/common/clientstate.cpp +++ b/src/net/common/clientstate.cpp @@ -1497,7 +1497,7 @@ ClientStateWaitGame::InternalHandlePacket(boost::shared_ptr client else if (tmpPacket->GetMsg()->present == PokerTHMessage_PR_rejectInvNotifyMessage) { RejectInvNotifyMessage_t *netRejNotify = &tmpPacket->GetMsg()->choice.rejectInvNotifyMessage; - client->GetCallback().SignalPlayerGameInvitation( + client->GetCallback().SignalRejectedGameInvitation( netRejNotify->gameId, netRejNotify->playerId, static_cast(netRejNotify->playerRejectReason));