diff --git a/src/gui/qt/gametable/gametableimpl.cpp b/src/gui/qt/gametable/gametableimpl.cpp index c2935257..54b36415 100755 --- a/src/gui/qt/gametable/gametableimpl.cpp +++ b/src/gui/qt/gametable/gametableimpl.cpp @@ -3840,13 +3840,15 @@ void gameTableImpl::leaveCurrentNetworkGame() void gameTableImpl::triggerVoteOnKick(int id) { - assert(myStartWindow->getSession()->getCurrentGame()); - PlayerList seatList = myStartWindow->getSession()->getCurrentGame()->getSeatsList(); - int playerCount = static_cast(seatList->size()); - if (id < playerCount) { - PlayerListIterator pos = seatList->begin(); - advance(pos, id); - myStartWindow->getSession()->startVoteKickPlayer((*pos)->getMyUniqueID()); + if (myStartWindow->getSession()->getCurrentGame()) + { + PlayerList seatList = myStartWindow->getSession()->getCurrentGame()->getSeatsList(); + int playerCount = static_cast(seatList->size()); + if (id < playerCount) { + PlayerListIterator pos = seatList->begin(); + advance(pos, id); + myStartWindow->getSession()->startVoteKickPlayer((*pos)->getMyUniqueID()); + } } }