void Auto::copy_from(Auto *that)
{
- this->orig_id = orig_id;
+ this->orig_id = that->orig_id;
this->position = that->position;
}
if( !templ ) templ = previous;
if( !templ && this->autos )
templ = this->autos->default_auto;
- if( templ )
+ if( templ ) {
+ int orig_id = this->orig_id;
copy_from(templ);
+ this->orig_id = orig_id;
+ }
position = new_position;
return 0;
}