Author: mordante
Date: Fri Jul 18 21:42:59 2008
New Revision: 28076

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

Modified:
    trunk/src/mapgen.cpp

Modified: trunk/src/mapgen.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/mapgen.cpp?rev=28076&r1=28075&r2=28076&view=diff
==============================================================================
--- trunk/src/mapgen.cpp (original)
+++ trunk/src/mapgen.cpp Fri Jul 18 21:42:59 2008
@@ -360,12 +360,17 @@
 //! For use in the a_star_search algorithm.
 struct road_path_calculator : cost_calculator
 {
-       road_path_calculator(const terrain_map& terrain, const config& cfg)
-                       : calls(0), map_(terrain), cfg_(cfg),
-
-                                 // Find out how windy roads should be.
-                                 
windiness_(maximum<int>(1,atoi(cfg["road_windiness"].c_str()))),
-                                 seed_(rand()) {}
+       road_path_calculator(const terrain_map& terrain, const config& cfg) :
+       calls(0), 
+               map_(terrain), 
+               cfg_(cfg),
+               // Find out how windy roads should be.
+               windiness_(maximum<int>(1,atoi(cfg["road_windiness"].c_str()))),
+               seed_(rand()),
+               cache_()
+       {
+       }
+
        virtual double cost(const location& src, const location& loc, const 
double so_far) const;
 
        mutable int calls;


_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits

Reply via email to