]> git.mxchange.org Git - flightgear.git/blobdiff - src/MultiPlayer/mpplayer.cxx
- don't abort if remote model isn't installed; output missing model's
[flightgear.git] / src / MultiPlayer / mpplayer.cxx
index 783ddce9e655b3a5d4106a8562d1c21b2db4226d..20b255ad56a5256ba6641f763b2f383154c2466f 100644 (file)
@@ -107,9 +107,12 @@ bool MPPlayer::Open(const string &sAddress, const int &iPort, const string &sCal
 
         // If the player is remote then load the model
         if (!bLocalPlayer) {
-
-             LoadModel();
-
+             try {
+                 LoadModel();
+             } catch (...) {
+                 SG_LOG( SG_NETWORK, SG_ALERT, "Failed to load remote model '" << sModelName << "'." );
+                 return false;
+             }
         }
 
         m_bInitialised = bSuccess;