Revision: 1506
          http://rigsofrods.svn.sourceforge.net/rigsofrods/?rev=1506&view=rev
Author:   rorthomas
Date:     2010-08-07 11:04:08 +0000 (Sat, 07 Aug 2010)

Log Message:
-----------
fixed crash under linux

Modified Paths:
--------------
    trunk/source/main/SkyManager.cpp

Modified: trunk/source/main/SkyManager.cpp
===================================================================
--- trunk/source/main/SkyManager.cpp    2010-08-07 01:11:21 UTC (rev 1505)
+++ trunk/source/main/SkyManager.cpp    2010-08-07 11:04:08 UTC (rev 1506)
@@ -74,7 +74,13 @@
 void SkyManager::loadScript(Ogre::String script)
 {
        // load the caelum config
-       CaelumPlugin::getSingleton().loadCaelumSystemFromScript (mCaelumSystem, 
script);
+       try
+       {
+               CaelumPlugin::getSingleton().loadCaelumSystemFromScript 
(mCaelumSystem, script);
+       } catch(Ogre::Exception& e)
+       {
+               LogManager::getSingleton().logMessage("exception upon loading 
sky script: " + e.getFullDescription());
+       }
 }
 
 void SkyManager::setTimeFactor(LongReal factor)


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
_______________________________________________
Rigsofrods-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/rigsofrods-devel

Reply via email to