Author: fendrin
Date: Tue Nov  8 00:28:35 2011
New Revision: 51925

URL: http://svn.gna.org/viewcvs/wesnoth?rev=51925&view=rev
Log:
Fix the second_unit support of recall actions during a replay.

Modified:
    trunk/src/replay.cpp

Modified: trunk/src/replay.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/replay.cpp?rev=51925&r1=51924&r2=51925&view=diff
==============================================================================
--- trunk/src/replay.cpp (original)
+++ trunk/src/replay.cpp Tue Nov  8 00:28:35 2011
@@ -950,13 +950,13 @@
                {
                        const std::string& unit_id = child["value"];
                        map_location loc(child, resources::state_of_game);
+                       map_location from(child.child_or_empty("from"), 
resources::state_of_game);
 
                        std::vector<unit>::iterator recall_unit = 
std::find_if(current_team.recall_list().begin(),
                                current_team.recall_list().end(), 
boost::bind(&unit::matches_id, _1, unit_id));
 
                        if (recall_unit != current_team.recall_list().end()) {
                                statistics::recall_unit(*recall_unit);
-                               map_location from = map_location::null_location;
                                place_recruit(*recall_unit, loc, from, true, 
!get_replay_source().is_skipping());
                                current_team.recall_list().erase(recall_unit);
                                
current_team.spend_gold(current_team.recall_cost());


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

Reply via email to