diff options
author | Matt Kimber <github@mattkimber.org.uk> | 2021-01-03 13:32:58 +0000 |
---|---|---|
committer | Patric Stout <github@truebrain.nl> | 2021-01-05 11:42:25 +0100 |
commit | 9b28b15e677e0de64fde270f4223daeb401cfcac (patch) | |
tree | 879ebd9b98d9ce4e8a45dd38b9033f3da9349080 /src/articulated_vehicles.cpp | |
parent | eeb88e87d8c7b62e0bac94ede44cceee987b8d09 (diff) | |
download | openttd-9b28b15e677e0de64fde270f4223daeb401cfcac.tar.xz |
Codechange: create MutableSpriteCache to remove the need to cast Vehicle to a mutable type in render methods
Diffstat (limited to 'src/articulated_vehicles.cpp')
-rw-r--r-- | src/articulated_vehicles.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/articulated_vehicles.cpp b/src/articulated_vehicles.cpp index 4f42c6955..bdca9a507 100644 --- a/src/articulated_vehicles.cpp +++ b/src/articulated_vehicles.cpp @@ -439,7 +439,7 @@ void AddArticulatedParts(Vehicle *first) v->max_age = 0; v->engine_type = engine_type; v->value = 0; - v->sprite_seq.Set(SPR_IMG_QUERY); + v->sprite_cache.sprite_seq.Set(SPR_IMG_QUERY); v->random_bits = VehicleRandomBits(); if (flip_image) v->spritenum++; |