mail[Wesnoth-commits] r28468 - /trunk/src/terrain_filter.cpp


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

Header


Content

Posted by koraq on August 12, 2008 - 02:14:
Author: mordante
Date: Mon Aug 11 19:42:31 2008
New Revision: 28468

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

Modified:
    trunk/src/terrain_filter.cpp

Modified: trunk/src/terrain_filter.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/terrain_filter.cpp?rev=28468&r1=28467&r2=28468&view=diff
==============================================================================
--- trunk/src/terrain_filter.cpp (original)
+++ trunk/src/terrain_filter.cpp Mon Aug 11 19:42:31 2008
@@ -34,15 +34,28 @@
 
 
 terrain_filter::terrain_filter(const vconfig& cfg, const gamemap& map,
-       const gamestatus& game_status, const unit_map& units, const bool 
flat_tod,
-       const size_t max_loop) : cfg_(cfg), map_(map), status_(game_status), 
units_(units)
+               const gamestatus& game_status, const unit_map& units, 
+               const bool flat_tod, const size_t max_loop) : 
+       cfg_(cfg), 
+       map_(map), 
+       status_(game_status), 
+       units_(units),
+       cache_(),
+       max_loop_(max_loop),
+       flat_(flat_tod)
 {
        restrict(max_loop);
        flatten(flat_tod);
 }
 
-terrain_filter::terrain_filter(const vconfig& cfg, const terrain_filter& 
original)
-       : cfg_(cfg), map_(original.map_), status_(original.status_), 
units_(original.units_)
+terrain_filter::terrain_filter(const vconfig& cfg, const terrain_filter& 
original) :
+       cfg_(cfg), 
+       map_(original.map_), 
+       status_(original.status_), 
+       units_(original.units_),
+       cache_(),
+       max_loop_(original.max_loop_),
+       flat_(original.flat_)
 {
        restrict(original.max_loop_);
        flatten(original.flat_);
@@ -54,7 +67,10 @@
        cfg_(other.cfg_),
        map_(other.map_),
        status_(other.status_),
-       units_(other.units_)
+       units_(other.units_),
+       cache_(),
+       max_loop_(other.max_loop_),
+       flat_(other.flat_)
 {
        restrict(other.max_loop_);
        flatten(other.flat_);




Related Messages


Powered by MHonArc, Updated Tue Aug 12 03:21:27 2008