mail[Wesnoth-commits] r28587 - /trunk/src/unit_map.cpp


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

Header


Content

Posted by koraq on August 14, 2008 - 18:56:
Author: mordante
Date: Thu Aug 14 18:49:06 2008
New Revision: 28587

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

Modified:
    trunk/src/unit_map.cpp

Modified: trunk/src/unit_map.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/unit_map.cpp?rev=28587&r1=28586&r2=28587&view=diff
==============================================================================
--- trunk/src/unit_map.cpp (original)
+++ trunk/src/unit_map.cpp Thu Aug 14 18:49:06 2008
@@ -37,7 +37,12 @@
        add(new std::pair<gamemap::location,unit>(loc, u));
 }
 
-unit_map::unit_map(const unit_map &that)
+unit_map::unit_map(const unit_map &that) :
+       /* Initialize to silence compiler warnings. */
+       map_(),
+       lmap_(),
+       num_iters_(0), 
+       num_invalid_(0)
 {
        *this = that;
 }




Related Messages


Powered by MHonArc, Updated Thu Aug 14 19:02:50 2008