Skip to content

Commit

Permalink
display::change_units takes a const argument
Browse files Browse the repository at this point in the history
  • Loading branch information
cbeck88 committed Jun 10, 2014
1 parent 7690787 commit fe92895
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/display.cpp
Expand Up @@ -569,7 +569,7 @@ void display::change_map(const gamemap* m)
builder_->change_map(m);
}

void display::change_units(unit_map* umap)
void display::change_units(const unit_map* umap)
{
units_ = umap;
}
Expand Down
2 changes: 1 addition & 1 deletion src/display.hpp
Expand Up @@ -155,7 +155,7 @@ class display

void change_map(const gamemap* m);
void change_teams(const std::vector<team>* teams);
void change_units(unit_map* units);
void change_units(const unit_map* units);

static Uint32 rgb(Uint8 red, Uint8 green, Uint8 blue)
{ return 0xFF000000 | (red << 16) | (green << 8) | blue; }
Expand Down

0 comments on commit fe92895

Please sign in to comment.