Initialize all members.
This commit is contained in:
parent
e2ceeab176
commit
3a5727e922
1 changed files with 6 additions and 1 deletions
|
@ -37,7 +37,12 @@ unit_map::unit_map(const gamemap::location &loc, const unit &u) :
|
|||
add(new std::pair<gamemap::location,unit>(loc, u));
|
||||
}
|
||||
|
||||
unit_map::unit_map(const unit_map &that)
|
||||
unit_map::unit_map(const unit_map &that) :
|
||||
/* Initialize to silence compiler warnings. */
|
||||
map_(),
|
||||
lmap_(),
|
||||
num_iters_(0),
|
||||
num_invalid_(0)
|
||||
{
|
||||
*this = that;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue