display::change_units takes a const argument
This commit is contained in:
parent
76907870dc
commit
fe92895bd0
2 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -155,7 +155,7 @@ public:
|
|||
|
||||
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; }
|
||||
|
|
Loading…
Add table
Reference in a new issue