Revision: 1436
          http://rigsofrods.svn.sourceforge.net/rigsofrods/?rev=1436&view=rev
Author:   rorthomas
Date:     2010-07-13 19:36:58 +0000 (Tue, 13 Jul 2010)

Log Message:
-----------
added simple security check

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

Modified: trunk/source/main/OverlayWrapper.cpp
===================================================================
--- trunk/source/main/OverlayWrapper.cpp        2010-07-13 19:32:43 UTC (rev 
1435)
+++ trunk/source/main/OverlayWrapper.cpp        2010-07-13 19:36:58 UTC (rev 
1436)
@@ -102,7 +102,9 @@
        //adjust dashboard size for screen ratio
        resizePanel(loadOverlayElement("tracks/pressureo"));
        resizePanel(loadOverlayElement("tracks/pressureneedle"));
-       
pressuretexture=((MaterialPtr)(MaterialManager::getSingleton().getByName("tracks/pressureneedle_mat")))->getTechnique(0)->getPass(0)->getTextureUnitState(0);
+       MaterialPtr m = 
MaterialManager::getSingleton().getByName("tracks/pressureneedle_mat");
+       if(!m.isNull())
+               
pressuretexture=m->getTechnique(0)->getPass(0)->getTextureUnitState(0);
 
        resizePanel(loadOverlayElement("tracks/speedo"));
        resizePanel(loadOverlayElement("tracks/tacho"));


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