Use reference when possible

This commit is contained in:
Ali El Gariani 2010-09-14 05:37:58 +00:00
parent 4d18562b53
commit 2d006045ee

View file

@ -2000,7 +2000,7 @@ void display::draw_invalidated() {
SDL_Rect clip_rect = get_clip_rect();
surface screen = get_screen_surface();
clip_rect_setter set_clip_rect(screen, &clip_rect);
foreach (map_location loc, invalidated_) {
foreach (const map_location& loc, invalidated_) {
int xpos = get_location_x(loc);
int ypos = get_location_y(loc);