QTfrontend/hwform.cpp
changeset 4831 57b46b5dbfff
parent 4594 5645462cc78f
child 4845 9a0f5377c529
--- a/QTfrontend/hwform.cpp	Mon Jan 10 15:53:49 2011 +0300
+++ b/QTfrontend/hwform.cpp	Mon Jan 10 18:20:58 2011 +0300
@@ -545,7 +545,7 @@
             GoBack();
 
     if (curid == ID_PAGE_ROOMSLIST) NetDisconnect();
-    if (curid == ID_PAGE_NETGAME) hwnet->partRoom();
+    if (curid == ID_PAGE_NETGAME && hwnet) hwnet->partRoom();
     // need to work on this, can cause invalid state for admin quit trying to prevent bad state message on kick
     //if (curid == ID_PAGE_NETGAME && (!game || game->gameState != gsStarted)) hwnet->partRoom();