Author: tschmitz
Date: Fri Aug 19 22:58:31 2011
New Revision: 50857
URL: http://svn.gna.org/viewcvs/wesnoth?rev=50857&view=rev
Log:
Fixed crash when a unit with planned actions is killed.
Modified:
trunk/src/actions.cpp
Modified: trunk/src/actions.cpp
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/src/actions.cpp?rev=50857&r1=50856&r2=50857&view=diff
==============================================================================
--- trunk/src/actions.cpp (original)
+++ trunk/src/actions.cpp Fri Aug 19 22:58:31 2011
@@ -1349,9 +1349,9 @@
void attack_unit(const map_location &attacker, const map_location &defender,
int attack_with, int defend_with, bool update_display)
{
+ resources::whiteboard->on_gamestate_change();
attack dummy(attacker, defender, attack_with, defend_with,
update_display);
dummy.perform();
- resources::whiteboard->on_gamestate_change();
}
attack::attack(const map_location &attacker, const map_location &defender,
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits