summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authoryexo <yexo@openttd.org>2009-06-21 13:30:21 +0000
committeryexo <yexo@openttd.org>2009-06-21 13:30:21 +0000
commit2aeaa7a11ac2343f3040f2ea7ea2c390a8967681 (patch)
treefc7acaaa4a538d1f656789cc56d82c5de6d60e37 /src
parentc7bd6c8d3460e6da19e38b230be7b456d31e1df8 (diff)
downloadopenttd-2aeaa7a11ac2343f3040f2ea7ea2c390a8967681.tar.xz
(svn r16615) -Fix (r16613): 0x10 != 2
Diffstat (limited to 'src')
-rw-r--r--src/newgrf_engine.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/newgrf_engine.cpp b/src/newgrf_engine.cpp
index 89da896ad..66cd163b9 100644
--- a/src/newgrf_engine.cpp
+++ b/src/newgrf_engine.cpp
@@ -695,7 +695,7 @@ static uint32 VehicleGetVariable(const ResolverObject *object, byte variable, by
/* General vehicle properties */
switch (variable - 0x80) {
- case 0x00: return v->type + 2;
+ case 0x00: return v->type + 0x10;
case 0x01: return MapOldSubType(v);
case 0x04: return v->index;
case 0x05: return GB(v->index, 8, 8);