Author: mordante
Date: Sat Jun 21 22:52:02 2008
New Revision: 27378
URL: http://svn.gna.org/viewcvs/wesnoth?rev=27378&view=rev
Log:
Initialize all members.
Modified:
trunk/src/unit_types.hpp
Modified: trunk/src/unit_types.hpp
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/src/unit_types.hpp?rev=27378&r1=27377&r2=27378&view=diff
==============================================================================
--- trunk/src/unit_types.hpp (original)
+++ trunk/src/unit_types.hpp Sat Jun 21 22:52:02 2008
@@ -327,7 +327,14 @@
private:
unit_type_map_wrapper();
- unit_type_map_wrapper(unit_type_map_wrapper& /*utf*/) {}
+ unit_type_map_wrapper(unit_type_map_wrapper& /*utf*/) :
+ types_(),
+ dummy_unit_map_(),
+ movement_types_(),
+ races_(),
+ unit_traits_(),
+ unit_cfg_(0)
+ {}
void set_unit_config(const config& unit_cfg) { unit_cfg_ =
&unit_cfg; }
void set_unit_traits(const config::child_list unit_traits) {
unit_traits_ = unit_traits; }
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits