Revision: 2756
          http://rigsofrods.svn.sourceforge.net/rigsofrods/?rev=2756&view=rev
Author:   ulteq
Date:     2012-05-30 15:59:00 +0000 (Wed, 30 May 2012)
Log Message:
-----------
fixes warning "taking address of temporary"
refs #970

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

Modified: trunk/source/main/gameplay/RoRFrameListener.cpp
===================================================================
--- trunk/source/main/gameplay/RoRFrameListener.cpp     2012-05-29 20:14:22 UTC 
(rev 2755)
+++ trunk/source/main/gameplay/RoRFrameListener.cpp     2012-05-30 15:59:00 UTC 
(rev 2756)
@@ -1115,8 +1115,9 @@
                } else if (!preselected_truck.empty() && preselected_truck != 
"none")
                {
                        // load preselected truck
+                       const std::vector<String> truckConfig = 
std::vector<String>(1, preselected_truckConfig);
                        loading_state = TERRAIN_LOADED;
-                       initTrucks(true, preselected_truck, "", 
&std::vector<String>(1, preselected_truckConfig), enterTruck);
+                       initTrucks(true, preselected_truck, "", &truckConfig, 
enterTruck);
                }
        } else
        {

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


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Rigsofrods-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/rigsofrods-devel

Reply via email to