summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--newgrf_engine.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/newgrf_engine.c b/newgrf_engine.c
index 3b486a3ab..f57079fb6 100644
--- a/newgrf_engine.c
+++ b/newgrf_engine.c
@@ -729,7 +729,7 @@ SpriteID GetRotorOverrideSprite(EngineID engine, const Vehicle *v)
if (v == NULL) return group->g.result.sprite;
- return group->g.result.sprite + v->next->next->u.air.state;
+ return group->g.result.sprite + (v->next->next->u.air.state % group->g.result.num_sprites);
}