(svn r15396) -Fix [FS#2601](r15027): since AIs can have vehicle groups now, convert the groups correctly

This commit is contained in:
smatz 2009-02-07 13:53:38 +00:00
parent d7a053578d
commit abb17d64a1
1 changed files with 0 additions and 1 deletions

View File

@ -360,7 +360,6 @@ void ChangeOwnershipOfCompanyItems(Owner old_owner, Owner new_owner)
} else {
v->owner = new_owner;
v->colormap = PAL_NONE;
v->group_id = DEFAULT_GROUP;
if (IsEngineCountable(v)) GetCompany(new_owner)->num_engines[v->engine_type]++;
if (v->IsPrimaryVehicle()) v->unitnumber = unitidgen[v->type].NextID();
}