Fixed crash when invisibility cache wasn't cleared correctly

This commit is contained in:
Pauli Nieminen 2008-09-07 18:06:14 +00:00
parent 073649f7eb
commit f54438ce0a

View file

@ -2786,7 +2786,7 @@ void unit::apply_modifications()
void unit::ambush(const gamemap::location& loc) const
{
invisibility_cache_.find(loc);
clear_visibility_cache();
std::vector<const unit *>::iterator itor =
std::find(units_with_cache.begin(), units_with_cache.end(), this);