summaryrefslogtreecommitdiff
path: root/newgrf_engine.c
diff options
context:
space:
mode:
Diffstat (limited to 'newgrf_engine.c')
-rw-r--r--newgrf_engine.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/newgrf_engine.c b/newgrf_engine.c
index 800be6523..8629d0470 100644
--- a/newgrf_engine.c
+++ b/newgrf_engine.c
@@ -651,7 +651,7 @@ static uint32 VehicleGetVariable(const ResolverObject *object, byte variable, by
}
case 0x46: /* Motion counter */
- return 0;
+ return v->motion_counter;
case 0x47: { /* Vehicle cargo info */
/* Format: ccccwwtt