Fixing a bug where a wrong callback was called.

This commit is contained in:
lotodore
2010-03-30 20:02:26 +00:00
parent 7aebea6461
commit 25779efe3d
+1 -1
View File
@@ -1497,7 +1497,7 @@ ClientStateWaitGame::InternalHandlePacket(boost::shared_ptr<ClientThread> 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<DenyGameInvitationReason>(netRejNotify->playerRejectReason));