Initialize unit_halo_ & unit_halo_anim_ to zero in constructor.

This commit is contained in:
Rusty Russell 2006-05-07 04:28:20 +00:00
parent c14919f081
commit 051e43cf7a

View file

@ -100,7 +100,7 @@ unit::unit(const game_data* gamedata, unit_map* unitmap, const gamemap* map,
unit::unit(const game_data& gamedata,const config& cfg) : movement_(0), unit::unit(const game_data& gamedata,const config& cfg) : movement_(0),
hold_position_(false), resting_(false), hold_position_(false), resting_(false),
facing_(gamemap::location::NORTH_EAST), facing_(gamemap::location::NORTH_EAST),
upkeep_(0),anim_(NULL), gamedata_(&gamedata), upkeep_(0),anim_(NULL),unit_halo_(0),unit_anim_halo_(0),gamedata_(&gamedata),
units_(NULL),map_(NULL), gamestatus_(NULL) units_(NULL),map_(NULL), gamestatus_(NULL)
{ {
read(cfg); read(cfg);