diff options
author | glx <glx@openttd.org> | 2008-01-03 23:50:58 +0000 |
---|---|---|
committer | glx <glx@openttd.org> | 2008-01-03 23:50:58 +0000 |
commit | e9a35fd75dcde4bc262386f11f41e425a12dac11 (patch) | |
tree | 026efa2300b2925d9151a9d24da6c7fc6329a271 /src/economy.cpp | |
parent | 87a68bd80fa8f0c11ef4898e2c5ecbff8a60f7ad (diff) | |
download | openttd-e9a35fd75dcde4bc262386f11f41e425a12dac11.tar.xz |
(svn r11749) -Fix (r11352): when a bankrupted company is bought, reset vehicle color mapping so the vehicles use the new owner color
Diffstat (limited to 'src/economy.cpp')
-rw-r--r-- | src/economy.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/economy.cpp b/src/economy.cpp index 089250f0b..dae1ab3ad 100644 --- a/src/economy.cpp +++ b/src/economy.cpp @@ -402,6 +402,7 @@ void ChangeOwnershipOfPlayerItems(PlayerID old_player, PlayerID new_player) } } else { v->owner = new_player; + v->colormap = PAL_NONE; v->group_id = DEFAULT_GROUP; if (IsEngineCountable(v)) GetPlayer(new_player)->num_engines[v->engine_type]++; switch (v->type) { |