Default network game id is 1, not 0.

This commit is contained in:
lotodore
2009-06-20 17:39:13 +00:00
parent a284f27750
commit b868990462
@@ -84,7 +84,7 @@ void startNetworkGameDialogImpl::addConnectedPlayer(unsigned playerId, QString p
item->setData(0, Qt::UserRole, playerId);
item->setData(0, Qt::DisplayRole, playerName);
GameInfo info = mySession->getClientGameInfo(0);
GameInfo info = mySession->getClientGameInfo(1);
if(this->isVisible() && myConfig->readConfigInt("PlayNetworkGameNotification")) {
if(treeWidget->topLevelItemCount() < info.data.maxNumberOfPlayers) {
@@ -137,7 +137,7 @@ void startNetworkGameDialogImpl::newGameAdmin(unsigned playerId, QString)
void startNetworkGameDialogImpl::gameCreated(unsigned /*gameId*/)
{
GameInfo info = mySession->getClientGameInfo(0);
GameInfo info = mySession->getClientGameInfo(1);
label_maxPlayerNumber->setText(QString::number(info.data.maxNumberOfPlayers));
}