Author: mordante
Date: Sun Jun 22 14:09:37 2008
New Revision: 27403
URL: http://svn.gna.org/viewcvs/wesnoth?rev=27403&view=rev
Log:
Added constructor to initialize all members.
Modified:
trunk/src/dialogs.hpp
Modified: trunk/src/dialogs.hpp
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/src/dialogs.hpp?rev=27403&r1=27402&r2=27403&view=diff
==============================================================================
--- trunk/src/dialogs.hpp (original)
+++ trunk/src/dialogs.hpp Sun Jun 22 14:09:37 2008
@@ -70,6 +70,27 @@
public:
enum TYPE { SHOW_ALL, SHOW_BASIC };
struct details {
+
+ details() :
+ image(),
+ name(),
+ type_name(),
+ level(0),
+ alignment(),
+ traits(),
+ abilities(),
+ hitpoints(0),
+ max_hitpoints(0),
+ experience(0),
+ max_experience(0),
+ hp_color(),
+ xp_color(),
+ movement_left(0),
+ total_movement(0),
+ attacks()
+ {
+ }
+
surface image;
std::string name, type_name;
int level;
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits