Revision: 1475
          http://rigsofrods.svn.sourceforge.net/rigsofrods/?rev=1475&view=rev
Author:   rorthomas
Date:     2010-07-20 09:26:44 +0000 (Tue, 20 Jul 2010)

Log Message:
-----------
fixed crashing caelum

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

Modified: trunk/source/main/RoRFrameListener.cpp
===================================================================
--- trunk/source/main/RoRFrameListener.cpp      2010-07-20 08:59:48 UTC (rev 
1474)
+++ trunk/source/main/RoRFrameListener.cpp      2010-07-20 09:26:44 UTC (rev 
1475)
@@ -4815,9 +4815,6 @@
                //directional light for shadow
                mainLight->setType(Light::LT_DIRECTIONAL);
                mainLight->setDirection(0.785, -0.423, 0.453);
-       } else
-       {
-               mainLight = SkyManager::getSingleton().getMainLight();
        }
 #else // USE_CAELUM
        mainLight = mSceneMgr->createLight("MainLight");
@@ -4835,7 +4832,7 @@
                new SkyManager();
 
                SkyManager::getSingleton().init(mScene, mWindow, mCamera);
-
+               mainLight = SkyManager::getSingleton().getMainLight();
        }
        else
 #endif //CAELUM


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 Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
Rigsofrods-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/rigsofrods-devel

Reply via email to