fix crashes for local game (commited with avatar-ignore feature)

This commit is contained in:
doitux
2013-08-31 14:03:44 +02:00
parent d694a27498
commit 93345cc4eb
4 changed files with 19 additions and 18 deletions
+3
View File
@@ -1074,6 +1074,9 @@ void gameTableImpl::refreshPlayerAvatar()
PlayerList seatsList = currentGame->getSeatsList();
for (it_c=seatsList->begin(), seatPlace=0; it_c!=seatsList->end(); ++it_c, seatPlace++) {
//set uniqueID
playerAvatarLabelArray[(*it_c)->getMyID()]->setMyUniqueId((*it_c)->getMyUniqueID());
//get CountryString
QString countryString(QString(myStartWindow->getSession()->getClientPlayerInfo((*it_c)->getMyUniqueID()).countryCode.c_str()).toLower());
countryString = QString(":/cflags/cflags/%1.png").arg(countryString);