Fixed crash when invisibility cache wasn't cleared correctly
This commit is contained in:
parent
073649f7eb
commit
f54438ce0a
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue