Apply suggested fix for shroud/fog caches not being updated properly...
...when [modify_side] changes a team's allegiance (bug #12875). This is only a partial fix; fog isn't being updated properly; or I need a more explicit (WML) test case for this.
This commit is contained in:
parent
b3f2cf9001
commit
7c86407583
1 changed files with 2 additions and 0 deletions
|
@ -665,6 +665,8 @@ void team::change_team(const std::string& name, const std::string& user_name)
|
|||
if(teams != NULL) {
|
||||
for(std::vector<team>::const_iterator i = teams->begin(); i != teams->end(); ++i) {
|
||||
i->enemies_.clear();
|
||||
i->ally_shroud_.clear();
|
||||
i->ally_fog_.clear();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue