summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2011-01-14 18:58:03 +0000
committersmatz <smatz@openttd.org>2011-01-14 18:58:03 +0000
commit110e25e85970fa03627af5d256db02c300ac9c1a (patch)
tree049fba0730cead18bb2b632765fbabcba3ecea7d /src
parent26eb9eb7e28716b393de8b001fe80289b522ef93 (diff)
downloadopenttd-110e25e85970fa03627af5d256db02c300ac9c1a.tar.xz
(svn r21793) -Fix (r20446): broken usage of GetTileOwner() caused wrong conversion of old savegames
Diffstat (limited to 'src')
-rw-r--r--src/saveload/afterload.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/saveload/afterload.cpp b/src/saveload/afterload.cpp
index ef2143fa1..7694bcc9a 100644
--- a/src/saveload/afterload.cpp
+++ b/src/saveload/afterload.cpp
@@ -153,7 +153,7 @@ static void ConvertTownOwner()
/* FALL THROUGH */
case MP_TUNNELBRIDGE:
- if (GetTileOwner(tile) & 0x80) SetTileOwner(tile, OWNER_TOWN);
+ if (_m[tile].m1 & 0x80) SetTileOwner(tile, OWNER_TOWN);
break;
default: break;