mail[Wesnoth-commits] r28561 - /trunk/src/gamestatus.cpp


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

Header


Content

Posted by koraq on August 13, 2008 - 19:32:
Author: mordante
Date: Wed Aug 13 19:19:41 2008
New Revision: 28561

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

Modified:
    trunk/src/gamestatus.cpp

Modified: trunk/src/gamestatus.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/gamestatus.cpp?rev=28561&r1=28560&r2=28561&view=diff
==============================================================================
--- trunk/src/gamestatus.cpp (original)
+++ trunk/src/gamestatus.cpp Wed Aug 13 19:19:41 2008
@@ -1169,7 +1169,31 @@
        gs_wmi.clear();
 }
 
-game_state::game_state(const game_state& state) : variable_set(/*silences 
gcc warning*/)
+game_state::game_state(const game_state& state) : 
+       /* default construct everything to silence compiler warnings. */
+       variable_set(),
+       label(),
+       version(),
+       campaign_type(),
+       campaign_define(),
+       campaign_xtra_defines(),
+       campaign(),
+       history(),
+       abbrev(),
+       scenario(),
+       next_scenario(),
+       completion(),
+       players(),
+       scoped_variables(),
+       wml_menu_items(),
+       difficulty(),
+       replay_data(),
+       starting_pos(),
+       snapshot(),
+       last_selected(),
+       rng_(),
+       variables(),
+       temporaries()
 {
        *this = state;
 }




Related Messages


Powered by MHonArc, Updated Wed Aug 13 19:42:17 2008