mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-06 14:27:16 +00:00
(svn r15396) -Fix [FS#2601](r15027): since AIs can have vehicle groups now, convert the groups correctly
This commit is contained in:
parent
d7a053578d
commit
abb17d64a1
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user