Author: mordante
Date: Sun Apr 19 17:05:21 2009
New Revision: 35051
URL: http://svn.gna.org/viewcvs/wesnoth?rev=35051&view=rev
Log:
Initialize all members.
Modified:
trunk/src/ai/ai_actions.cpp
Modified: trunk/src/ai/ai_actions.cpp
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/src/ai/ai_actions.cpp?rev=35051&r1=35050&r2=35051&view=diff
==============================================================================
--- trunk/src/ai/ai_actions.cpp (original)
+++ trunk/src/ai/ai_actions.cpp Sun Apr 19 17:05:21 2009
@@ -232,8 +232,15 @@
// ai_recruit_result
-ai_recruit_result::ai_recruit_result( unsigned int side, const std::string&
unit_name, const map_location& where)
- : ai_action_result(side), unit_name_(unit_name), where_(where),
recruit_location_(where){
+ai_recruit_result::ai_recruit_result(unsigned int side,
+ const std::string& unit_name, const map_location& where)
+ : ai_action_result(side)
+ , unit_name_(unit_name)
+ , where_(where)
+ , recruit_location_(where)
+ , unit_type_(NULL)
+ , num_(0)
+{
}
bool ai_recruit_result::test_available_for_recruiting( const team& team,
std::set<std::string>::const_iterator& recruit, bool /*update_knowledge*/ )
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits