Follow-up Comment #6, bug #19287 (project wesnoth): Analyzing the savegames provided in the forum thread tells me this: -The error occurred upon the first stored unit which was tried to change (since i is 0). -The variable type_to_turn_into is empty in that "after" save, even though there exists a variable leak concerning this variable, and if I rerun the algorithm (successful as usual) using the "before" save, it is not empty. The variable "changer" also is empty in the "after error" save, even though it cannot have been cleared due to the error, which can also be seen since the clear_variable call which is supposed to do it is also supposed to clear the stored_changers which didn't take place. So the problem appears to be somewhere around the {FOREACH undead_transformation j} loop, perhaps related to this unusual "break" implementation, to the lua implementation for [while] and [if] and/or the engine evaluation for [variable]less_than=. I don't think the scenario or campaign wml is responsible, rather some change in the engine.
_______________________________________________________ Reply to this item at: <http://gna.org/bugs/?19287> _______________________________________________ Message sent via/by Gna! http://gna.org/ _______________________________________________ Wesnoth-bugs mailing list Wesnoth-bugs@gna.org https://mail.gna.org/listinfo/wesnoth-bugs