summaryrefslogtreecommitdiff
path: root/src/saveload
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2009-06-26 13:46:23 +0000
committersmatz <smatz@openttd.org>2009-06-26 13:46:23 +0000
commitaf78d6a9bbc4142958f07b8774ef28d0b7c22f49 (patch)
tree02804d2fbc7cf3e533df70db46fb426bc8678824 /src/saveload
parente6a165881cba611a4475db21068d64caa67796ea (diff)
downloadopenttd-af78d6a9bbc4142958f07b8774ef28d0b7c22f49.tar.xz
(svn r16665) -Codechange: replace GetTownByTile() by Town::GetByTile()
Diffstat (limited to 'src/saveload')
-rw-r--r--src/saveload/town_sl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/saveload/town_sl.cpp b/src/saveload/town_sl.cpp
index 2667997f0..98264382a 100644
--- a/src/saveload/town_sl.cpp
+++ b/src/saveload/town_sl.cpp
@@ -42,7 +42,7 @@ void UpdateHousesAndTowns()
SetHouseType(t, house_id);
}
- town = GetTownByTile(t);
+ town = Town::GetByTile(t);
IncreaseBuildingCount(town, house_id);
if (IsHouseCompleted(t)) town->population += GetHouseSpecs(house_id)->population;