QTfrontend/hwform.cpp
branchexperimental3D
changeset 4844 20b81fafd236
parent 4831 57b46b5dbfff
child 4845 9a0f5377c529
--- a/QTfrontend/hwform.cpp	Sun Jan 16 05:21:00 2011 +0100
+++ b/QTfrontend/hwform.cpp	Mon Jan 17 01:43:10 2011 +0100
@@ -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();