diff options
author | smatz <smatz@openttd.org> | 2009-02-07 13:53:38 +0000 |
---|---|---|
committer | smatz <smatz@openttd.org> | 2009-02-07 13:53:38 +0000 |
commit | d5e2154e90df4cede181a9baf9d47e925adfa71d (patch) | |
tree | d770b1bc9a6eef78a65933cbfc7c1baefb782920 /src | |
parent | 6ad9fcc6eca707a74a3b7c18ad7edcf6041f5487 (diff) | |
download | openttd-d5e2154e90df4cede181a9baf9d47e925adfa71d.tar.xz |
(svn r15396) -Fix [FS#2601](r15027): since AIs can have vehicle groups now, convert the groups correctly
Diffstat (limited to 'src')
-rw-r--r-- | src/economy.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/economy.cpp b/src/economy.cpp index 4c5fe53cd..efb66ff8e 100644 --- a/src/economy.cpp +++ b/src/economy.cpp @@ -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(); } |