mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-05 11:55:49 +00:00

Units on the recall list might have x,y coordinates that are on the map, which therefore need to be replaced with "recall,recall" within [store_unit]. The existing code created a temporary variable, changed the coordinates, and then returned the unchanged original instead of the temporary. Add a new test that `[put_to_recall_list]` followed by `[modify_unit]` doesn't move the unit back to the map. (cherry picked from commit 096d8aba1474e9c6583d240e7eedbcd66957f327)