summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2007-05-27 14:42:40 +0000
committerrubidium <rubidium@openttd.org>2007-05-27 14:42:40 +0000
commit7f0339748ff6734447237e7646e2411b90c8bf07 (patch)
tree30623053ee3fb6c0a5bb2f78de89ffef95db4d24 /src
parent2dd0ba36cb07260d866e66ad543ddb557799bdb1 (diff)
downloadopenttd-7f0339748ff6734447237e7646e2411b90c8bf07.tar.xz
(svn r9958) -Fix (r9892): upgrading old savegames made (road)bridges unuseable.
Diffstat (limited to 'src')
-rw-r--r--src/openttd.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/openttd.cpp b/src/openttd.cpp
index 6ba826ad9..58fff0971 100644
--- a/src/openttd.cpp
+++ b/src/openttd.cpp
@@ -1468,7 +1468,7 @@ bool AfterLoadGame()
break;
case MP_TUNNELBRIDGE:
- if ((IsTunnel(t) ? GetTunnelTransportType(t) : GetBridgeTransportType(t)) == TRANSPORT_ROAD) {
+ if ((IsTunnel(t) ? GetTunnelTransportType(t) : (TransportType)GB(_m[t].m5, 1, 2)) == TRANSPORT_ROAD) {
SetRoadTypes(t, ROADTYPES_ROAD);
}
break;