diff Engine/SaveLoad.cpp @ 2552:ac16f4a3a91e

Load from MainMenu logic separated from MainMenu window
author a.parshin
date Wed, 13 May 2015 01:33:20 +0200
parents a902abdfc7f2
children 65c97624c047
line wrap: on
line diff
--- a/Engine/SaveLoad.cpp	Tue May 12 12:03:30 2015 +0200
+++ b/Engine/SaveLoad.cpp	Wed May 13 01:33:20 2015 +0200
@@ -179,7 +179,11 @@
     }
   }
 
-  pGUIWindow_CurrentMenu->Release();
+  if (pGUIWindow_CurrentMenu)
+  {
+      pGUIWindow_CurrentMenu->Release();
+      pGUIWindow_CurrentMenu = nullptr;
+  }
   current_screen_type = SCREEN_GAME;
 
   viewparams->bRedrawGameUI = true;