Author: fendrin
Date: Tue Oct 25 01:20:58 2011
New Revision: 51617
URL: http://svn.gna.org/viewcvs/wesnoth?rev=51617&view=rev
Log:
Fix for bug bug #18815 [filter_recall] works incorrectly.
Modified:
trunk/src/actions.cpp
Modified: trunk/src/actions.cpp
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/src/actions.cpp?rev=51617&r1=51616&r2=51617&view=diff
==============================================================================
--- trunk/src/actions.cpp (original)
+++ trunk/src/actions.cpp Tue Oct 25 01:20:58 2011
@@ -412,19 +412,12 @@
}
}
- if (local_result.empty()) {
- foreach (const unit &recall, recall_list)
- {
- local_result.push_back(&recall);
- }
- }
-
return local_result;
}
std::string find_recall_location(const int side, map_location &recall_loc,
const unit &recall_unit)
{
- LOG_NG << "finding recall location for side " << side << "\n";
+ LOG_NG << "finding recall location for side " << side << " and unit "
<< recall_unit.id() << "\n";
unit_map::const_iterator u = resources::units->begin(),
u_end = resources::units->end(), leader = u_end, leader_keep =
u_end, leader_fit = u_end,
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits