From afcd787774524e11e84dd9e5e4e8fbc07f69f59e Mon Sep 17 00:00:00 2001 From: Titus Tscharntke Date: Wed, 3 Oct 2012 21:42:11 +0000 Subject: [PATCH] fixed ishmarus problem without default .mgg files ( http://glest.org/glest_board/index.php?topic=8629.0 ) --- source/glest_game/menu/menu_state_custom_game.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/source/glest_game/menu/menu_state_custom_game.cpp b/source/glest_game/menu/menu_state_custom_game.cpp index e8299e714..da1345b2f 100644 --- a/source/glest_game/menu/menu_state_custom_game.cpp +++ b/source/glest_game/menu/menu_state_custom_game.cpp @@ -686,10 +686,12 @@ MenuStateCustomGame::MenuStateCustomGame(Program *program, MainMenu *mainMenu, publishToMasterserverThread->start(); if(openNetworkSlots==true){ - loadGameSettings(DEFAULT_NETWORKGAME_FILENAME); + if(fileExists(DEFAULT_NETWORKGAME_FILENAME) == true) + loadGameSettings(DEFAULT_NETWORKGAME_FILENAME); } else { - loadGameSettings(DEFAULT_GAME_FILENAME); + if(fileExists(DEFAULT_GAME_FILENAME) == true) + loadGameSettings(DEFAULT_GAME_FILENAME); } if(SystemFlags::getSystemSettingType(SystemFlags::debugSystem).enabled) SystemFlags::OutputDebug(SystemFlags::debugSystem,"In [%s::%s Line %d]\n",extractFileFromDirectoryPath(__FILE__).c_str(),__FUNCTION__,__LINE__);