Fix another singular iterator issue.

This commit is contained in:
Mark de Wever 2011-09-04 16:52:20 +00:00
parent 26363c3155
commit eea67b3d5d

View file

@ -94,7 +94,11 @@ void highlight_visitor::set_mouseover_hex(const map_location& hex)
if(itor != side_actions_->end())
selected_action_ = *itor;
}
//Overwrite the above selected_action_ if we find a better one
if(side_actions_->empty()) {
return;
}
BOOST_REVERSE_FOREACH(action_ptr act, *side_actions_)
{
/**@todo "is_numbering_hex" is not the "correct" criterion by which to