Explorar o código

CClient::loadGame: throw proper error if server save is missing

Arseniy Shestakov %!s(int64=9) %!d(string=hai) anos
pai
achega
f721d22dfb
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      client/Client.cpp

+ 1 - 1
client/Client.cpp

@@ -285,7 +285,7 @@ void CClient::loadGame(const std::string & fname, const bool server, const std::
 
 		if(clientSaveName.empty())
 			throw std::runtime_error("Cannot open client part of " + fname);
-		if(controlServerSaveName.empty())
+		if(controlServerSaveName.empty() || !boost::filesystem::exists(controlServerSaveName))
 			throw std::runtime_error("Cannot open server part of " + fname);
 
 		{