Skip to content

Commit

Permalink
unit redraw fcn treats units as const
Browse files Browse the repository at this point in the history
  • Loading branch information
cbeck88 committed Jun 10, 2014
1 parent 829c66e commit 16db25b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/display.cpp
Expand Up @@ -2554,7 +2554,7 @@ void display::draw_invalidated() {
invalidated_hexes_ += invalidated_.size();

BOOST_FOREACH(const map_location& loc, invalidated_) {
unit_map::iterator u_it = units_->find(loc);
unit_map::const_iterator u_it = units_->find(loc);
exclusive_unit_draw_requests_t::iterator request = exclusive_unit_draw_requests_.find(loc);
if (u_it != units_->end()
&& (request == exclusive_unit_draw_requests_.end() || request->second == u_it->id()))
Expand Down

0 comments on commit 16db25b

Please sign in to comment.