summaryrefslogtreecommitdiff
path: root/src/saveload
diff options
context:
space:
mode:
authormichi_cc <michi_cc@openttd.org>2012-01-22 22:21:21 +0000
committermichi_cc <michi_cc@openttd.org>2012-01-22 22:21:21 +0000
commit52b951ca6ffda7c465bd8ca3bfdb7ecdfe211a5b (patch)
tree7d3acf3780f3ec66b5aac4255cf3fb12bba966e9 /src/saveload
parentb888027dddfd448a99116cfb82e3608c0c5ae7bd (diff)
downloadopenttd-52b951ca6ffda7c465bd8ca3bfdb7ecdfe211a5b.tar.xz
(svn r23844) -Fix (r23414): Infrastructure count for stations wasn't updated properly on company takeover. And don't count buoys while loading a game either.
Diffstat (limited to 'src/saveload')
-rw-r--r--src/saveload/company_sl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/saveload/company_sl.cpp b/src/saveload/company_sl.cpp
index 836d20783..588d0fb18 100644
--- a/src/saveload/company_sl.cpp
+++ b/src/saveload/company_sl.cpp
@@ -139,7 +139,7 @@ void AfterLoadCompanyStats()
case MP_STATION:
c = Company::GetIfValid(GetTileOwner(tile));
- if (c != NULL && GetStationType(tile) != STATION_AIRPORT) c->infrastructure.station++;
+ if (c != NULL && GetStationType(tile) != STATION_AIRPORT && !IsBuoy(tile)) c->infrastructure.station++;
switch (GetStationType(tile)) {
case STATION_RAIL: