Applied my patch for bug #16604: "Ambushed!" message cannot be changed

This commit is contained in:
Anonymissimus 2010-09-02 23:02:40 +00:00
parent b60fa998a3
commit 3220513320

View file

@ -2352,7 +2352,7 @@ size_t move_unit(move_unit_spectator *move_spectator,
std::vector<std::pair<const config *, map_location> >::const_iterator hide_it = hides.cfgs.begin();
// we only use the first valid alert message
for(;hide_it != hides.cfgs.end() && !ambushed_string.empty(); ++hide_it) {
for(;hide_it != hides.cfgs.end() && ambushed_string.empty(); ++hide_it) {
ambushed_string = (*hide_it->first)["alert"].str();
}
}