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:
Ignacio R. Morelle 2009-01-30 01:42:56 +00:00
parent b3f2cf9001
commit 7c86407583

View file

@ -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();
}
}
}