Follow-up Comment #4, bug #15146 (project wesnoth):

Reproduced from save. Will fix.

The sequence of events which leads to this crash:
Long edition:
1) Kalex (leader) gets <0 hp, and he is killed by WML.
2) his last_breath event triggers a end of scenario event (endlevel)
3) handler of endlevel WML tag (see game_events.cpp +2542 ) removes Kaleh
from the list of units.
4) handler of kill WML tag tries to animate kaleh's death - but he's already
removed from the list of units on map, so his unit_map::iterator is no longer
valid.
5) assertion failure on attempt to dereference said iterator.

Short edition:
event A fires event B which fires event B which 'steals' the unit with which
the event A worked. assertion failure in A.


    _______________________________________________________

Reply to this item at:

  <http://gna.org/bugs/?15146>

_______________________________________________
  Message sent via/by Gna!
  http://gna.org/


_______________________________________________
Wesnoth-bugs mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-bugs

Reply via email to