Author: mordante
Date: Sun Jun 22 13:50:23 2008
New Revision: 27401

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

Modified:
    trunk/src/formula_ai.hpp

Modified: trunk/src/formula_ai.hpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/formula_ai.hpp?rev=27401&r1=27400&r2=27401&view=diff
==============================================================================
--- trunk/src/formula_ai.hpp (original)
+++ trunk/src/formula_ai.hpp Sun Jun 22 13:50:23 2008
@@ -31,7 +31,13 @@
 class ai_function_symbol_table : public function_symbol_table {
 
 public:
-       explicit ai_function_symbol_table(formula_ai& ai) : ai_(ai) {};
+       explicit ai_function_symbol_table(formula_ai& ai) : 
+               ai_(ai),
+               move_functions(),
+               candidate_move_evals()
+       {
+       }
+
        void register_candidate_move(const std::string name, 
                        const_formula_ptr formula, const_formula_ptr eval, 
                        const_formula_ptr precondition, const 
std::vector<std::string>& args);
@@ -61,7 +67,18 @@
        std::string evaluate(const std::string& formula_str);
 
        struct move_map_backup {
-               move_map_backup() : move_maps_valid(false) {}
+               move_map_backup() : 
+                       move_maps_valid(false),
+                       srcdst(),
+                       dstsrc(),
+                       full_srcdst(),
+                       full_dstsrc(),
+                       enemy_srcdst(),
+                       enemy_dstsrc(),
+                       attacks_cache()
+               {
+               }
+
                bool move_maps_valid;
                move_map srcdst, dstsrc, full_srcdst, full_dstsrc, 
enemy_srcdst, enemy_dstsrc;
                variant attacks_cache;


_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits

Reply via email to