summaryrefslogtreecommitdiff
path: root/src/economy.cpp
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2009-02-07 13:53:38 +0000
committersmatz <smatz@openttd.org>2009-02-07 13:53:38 +0000
commitabb17d64a106a66f30f84bc20ce69d0f35b5fcc6 (patch)
treed770b1bc9a6eef78a65933cbfc7c1baefb782920 /src/economy.cpp
parentd7a053578d6364478c39568198384432e554744a (diff)
downloadopenttd-abb17d64a106a66f30f84bc20ce69d0f35b5fcc6.tar.xz
(svn r15396) -Fix [FS#2601](r15027): since AIs can have vehicle groups now, convert the groups correctly
Diffstat (limited to 'src/economy.cpp')
-rw-r--r--src/economy.cpp1
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();
}