summaryrefslogtreecommitdiff
path: root/src/economy.cpp
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2008-01-15 15:00:01 +0000
committersmatz <smatz@openttd.org>2008-01-15 15:00:01 +0000
commit245f05a7cc3b333387da0d31b7f797bebf0720fb (patch)
tree3fac3a5889143b62cffcafd37b2c29c84ae62f39 /src/economy.cpp
parent932c586dfe3713e27b86286fafeea56b2958fa15 (diff)
downloadopenttd-245f05a7cc3b333387da0d31b7f797bebf0720fb.tar.xz
(svn r11864) -Codechange: pass owner whose signals we will update instead of complex detection later
Diffstat (limited to 'src/economy.cpp')
-rw-r--r--src/economy.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/economy.cpp b/src/economy.cpp
index 9780db4fa..680093f34 100644
--- a/src/economy.cpp
+++ b/src/economy.cpp
@@ -440,7 +440,7 @@ void ChangeOwnershipOfPlayerItems(PlayerID old_player, PlayerID new_player)
TrackBits tracks = GetTrackBits(tile);
do { // there may be two tracks with signals for TRACK_BIT_HORZ and TRACK_BIT_VERT
Track track = RemoveFirstTrack(&tracks);
- if (HasSignalOnTrack(tile, track)) SetSignalsOnBothDir(tile, track);
+ if (HasSignalOnTrack(tile, track)) SetSignalsOnBothDir(tile, track, new_player);
} while (tracks != TRACK_BIT_NONE);
}
} while (++tile != MapSize());