mail[Wesnoth-commits] r20037 - /trunk/src/pathfind.hpp


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by david on September 01, 2007 - 18:15:
Author: torangan
Date: Sat Sep  1 18:15:00 2007
New Revision: 20037

URL: http://svn.gna.org/viewcvs/wesnoth?rev=20037&view=rev
Log:
initialize all members

Modified:
    trunk/src/pathfind.hpp

Modified: trunk/src/pathfind.hpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/pathfind.hpp?rev=20037&r1=20036&r2=20037&view=diff
==============================================================================
--- trunk/src/pathfind.hpp (original)
+++ trunk/src/pathfind.hpp Sat Sep  1 18:15:00 2007
@@ -85,7 +85,7 @@
 //! with associated best routes to those locations.
 struct paths
 {
-       paths() {}
+       paths() : routes() {}
 
        // Construct a list of paths for the unit at loc.
        // - force_ignore_zocs: find the path ignoring ZOC entirely,
@@ -106,7 +106,7 @@
        //! Structure which holds a single route between one location and 
another.
        struct route
        {
-               route() : move_left(0) {}
+               route() : steps(), move_left(0), turn_waypoints() {}
                std::vector<gamemap::location> steps;
                int move_left; // movement unit will have left at end of the 
route.
                std::map<gamemap::location, int> turn_waypoints;




Related Messages


Powered by MHonArc, Updated Sat Sep 01 18:40:14 2007