change invalidate_animations_location to pass by ref in game_display too
This commit is contained in:
parent
2b285a5af2
commit
3111f85b10
2 changed files with 2 additions and 2 deletions
|
@ -900,7 +900,7 @@ bool game_display::invalidate(const gamemap::location& loc)
|
|||
return false;
|
||||
}
|
||||
|
||||
void game_display::invalidate_animations_location(gamemap::location loc) {
|
||||
void game_display::invalidate_animations_location(const gamemap::location& loc) {
|
||||
if (map_.is_village(loc)) {
|
||||
const int owner = player_teams::village_owner(loc);
|
||||
if (owner >= 0 && flags_[owner].need_update()
|
||||
|
|
|
@ -153,7 +153,7 @@ protected:
|
|||
/**
|
||||
* Extra game per-location invalidation (village ownership)
|
||||
*/
|
||||
void invalidate_animations_location(gamemap::location loc);
|
||||
void invalidate_animations_location(const gamemap::location& loc);
|
||||
|
||||
virtual void draw_minimap_units();
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue