init new variable to null
This commit is contained in:
parent
fd9ce54063
commit
7c98c35d67
|
@ -438,6 +438,7 @@ Unit::Unit(int id, UnitPathInterface *unitpath, const Vec2i &pos,
|
|||
}
|
||||
|
||||
this->pos=pos;
|
||||
this->preMorph_type = NULL;
|
||||
this->type=type;
|
||||
this->faction=faction;
|
||||
this->map= map;
|
||||
|
|
Loading…
Reference in New Issue