session:: shared pointer game refactoring

This commit is contained in:
doitux
2011-01-12 22:37:33 +00:00
parent a2d0272ed3
commit b6c820718a
5 changed files with 60 additions and 61 deletions
+2 -2
View File
@@ -52,7 +52,7 @@ void MyAvatarLabel::contextMenuEvent ( QContextMenuEvent *event ) {
//only active players are allowed to start a vote
if(humanPlayer->getMyActiveStatus()) {
Game *currentGame = myW->getSession()->getCurrentGame();
boost::shared_ptr<Game> currentGame = myW->getSession()->getCurrentGame();
PlayerListConstIterator it_c;
int activePlayerCounter=0;
PlayerList seatList = currentGame->getSeatsList();
@@ -204,7 +204,7 @@ void MyAvatarLabel::putPlayerOnIgnoreList() {
void MyAvatarLabel::reportBadAvatar() {
Game *currentGame = myW->getSession()->getCurrentGame();
boost::shared_ptr<Game> currentGame = myW->getSession()->getCurrentGame();
int j=0;
PlayerListConstIterator it_c;
PlayerList seatList = currentGame->getSeatsList();