From 8eea5a267def47f5611c3d793c0e2460b9728352 Mon Sep 17 00:00:00 2001 From: doitux Date: Sat, 25 Apr 2009 22:30:10 +0000 Subject: [PATCH] netclientleft bugfix --- src/gui/qt/gametable/gametableimpl.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/gui/qt/gametable/gametableimpl.cpp b/src/gui/qt/gametable/gametableimpl.cpp index ed2f9cd1..754f8cf1 100755 --- a/src/gui/qt/gametable/gametableimpl.cpp +++ b/src/gui/qt/gametable/gametableimpl.cpp @@ -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 tmpPlayer = myStartWindow->getSession()->getCurrentGame()->getPlayerByUniqueId(playerId); if (tmpPlayer.get()) {