netclientleft bugfix

This commit is contained in:
doitux
2009-04-25 22:30:10 +00:00
parent 3b8851676e
commit 8eea5a267d
+1 -2
View File
@@ -3371,8 +3371,7 @@ void gameTableImpl::restoreGameTableGeometry()
void gameTableImpl::netClientPlayerLeft(unsigned playerId) {
assert(myStartWindow->getSession()->getCurrentGame());
if (myStartWindow->getSession()->isNetworkClientRunning()) {
if (myStartWindow->getSession()->getCurrentGame() && myStartWindow->getSession()->isNetworkClientRunning()) {
boost::shared_ptr<PlayerInterface> tmpPlayer = myStartWindow->getSession()->getCurrentGame()->getPlayerByUniqueId(playerId);
if (tmpPlayer.get()) {