Author: mordante
Date: Tue Aug 12 08:43:55 2008
New Revision: 28478
URL: http://svn.gna.org/viewcvs/wesnoth?rev=28478&view=rev
Log:
Added constructor to initialize all members.
Modified:
trunk/src/unit.hpp
Modified: trunk/src/unit.hpp
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/src/unit.hpp?rev=28478&r1=28477&r2=28478&view=diff
==============================================================================
--- trunk/src/unit.hpp (original)
+++ trunk/src/unit.hpp Tue Aug 12 08:43:55 2008
@@ -38,6 +38,10 @@
class unit_ability_list
{
public:
+ unit_ability_list() :
+ cfgs()
+ {
+ }
bool empty() const;
@@ -466,6 +470,17 @@
struct team_data
{
+ team_data() :
+ units(0),
+ upkeep(0),
+ villages(0),
+ expenses(0),
+ net_income(0),
+ gold(0),
+ teamname()
+ {
+ }
+
int units, upkeep, villages, expenses, net_income, gold;
std::string teamname;
};
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits