summaryrefslogtreecommitdiff
path: root/src/openttd.cpp
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2008-11-18 22:43:59 +0000
committersmatz <smatz@openttd.org>2008-11-18 22:43:59 +0000
commit07e3c096b3b744ef1d094c9481faa31ec8d2034a (patch)
treefb5982346d711d936b8aa9f87eab53f416ab29d4 /src/openttd.cpp
parente1a36e90a44cf50ebcfa52ec8685e76230a22910 (diff)
downloadopenttd-07e3c096b3b744ef1d094c9481faa31ec8d2034a.tar.xz
(svn r14591) -Fix [FS#2388](r14528): cached nearest town could be invalid after importing older savegame and during town generation
-Codechange: rewrite parts of code responsible for caching index of nearest town
Diffstat (limited to 'src/openttd.cpp')
-rw-r--r--src/openttd.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/openttd.cpp b/src/openttd.cpp
index 45ba09de9..be588e5d9 100644
--- a/src/openttd.cpp
+++ b/src/openttd.cpp
@@ -2563,7 +2563,7 @@ bool AfterLoadGame()
if (CheckSavegameVersion(103)) {
/* Non-town-owned roads now store the closest town */
- InvalidateTownForRoadTile();
+ UpdateNearestTownForRoadTiles(false);
/* signs with invalid owner left from older savegames */
Sign *si;