summaryrefslogtreecommitdiff
path: root/src
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
commitd5e2154e90df4cede181a9baf9d47e925adfa71d (patch)
treed770b1bc9a6eef78a65933cbfc7c1baefb782920 /src
parent6ad9fcc6eca707a74a3b7c18ad7edcf6041f5487 (diff)
downloadopenttd-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.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();
}