Follow-up Comment #1, bug #21768 (project wesnoth):

There's nothing attached, you forgot the savefile.

However, do note that lua_function= was sort of unstable from the start, is
supposed to be used with care and the usual rule "wml/lua should never crash
wesnoth" doesn't apply.
For instance, if the code put into the called lua_function happens to remove
or add units from the unit_map, this could end up very badly, since the SUF
itself, where the funtion appears, iterates over the unit_map. So that's
deleting or adding elements from a container while iterating over it, but not
updating the iterator after the modification. It seems you are doing exactly
this. If so, then, well, it's misusage of lua_function=, which should not be
used to alter the gamestate in any way; it should only compute a boolean
return value.

    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  Nachricht gesendet von/durch Gna!
  http://gna.org/


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

Reply via email to