Author: crab
Date: Thu Apr 30 20:56:09 2009
New Revision: 35355
URL: http://svn.gna.org/viewcvs/wesnoth?rev=35355&view=rev
Log:
Fixed crashes related with undo actions incorrectly treated as dismissal undo
actions (because of uninitialized member variable in undo_action). Thanks to
Reisiger for investigating that segfault.
Modified:
trunk/src/actions.hpp
Modified: trunk/src/actions.hpp
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/src/actions.hpp?rev=35355&r1=35354&r2=35355&view=diff
==============================================================================
--- trunk/src/actions.hpp (original)
+++ trunk/src/actions.hpp Thu Apr 30 20:56:09 2009
@@ -330,7 +330,8 @@
recall_loc(),
recall_pos(-1),
affected_unit(u),
- countdown_time_bonus(timebonus)
+ countdown_time_bonus(timebonus),
+ is_dismiss(false)
{}
undo_action(const unit& u, const map_location& loc, const int pos,
const bool dismiss=false) :
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits