Author: mordante
Date: Tue Jul 8 21:39:37 2008
New Revision: 27848
URL: http://svn.gna.org/viewcvs/wesnoth?rev=27848&view=rev
Log:
Initialize all members.
Modified:
trunk/src/actions.cpp
Modified: trunk/src/actions.cpp
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/src/actions.cpp?rev=27848&r1=27847&r2=27848&view=diff
==============================================================================
--- trunk/src/actions.cpp (original)
+++ trunk/src/actions.cpp Tue Jul 8 21:39:37 2008
@@ -589,6 +589,9 @@
backstab_pos(false),
swarm(false),
firststrike(false),
+ experience(u.experience()),
+ max_experience(u.max_experience()),
+ level(u.level()),
rounds(1),
hp(0),
max_hp(max_hp = u.max_hitpoints()),
@@ -624,11 +627,6 @@
aloc = &opp_loc;
dloc = &u_loc;
}
-
- // these can matter, even if we can't hit back!
- experience = u.experience();
- max_experience = u.max_experience();
- level = u.level();
// Get the weapon characteristics, if any.
if (weapon) {
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits