summaryrefslogtreecommitdiff
path: root/src/effectvehicle_base.h
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2011-12-18 17:17:18 +0000
committersmatz <smatz@openttd.org>2011-12-18 17:17:18 +0000
commit33d283fdb1710e40cff4daaabde6aa78325d4623 (patch)
tree474b5ad5f9b38019a1985a4b1a29ada6a7560260 /src/effectvehicle_base.h
parent88f1acd26bb2d7872526e4abc89549f622bb75ea (diff)
downloadopenttd-33d283fdb1710e40cff4daaabde6aa78325d4623.tar.xz
(svn r23588) -Codechange: use the 'final' keyword so compiler can optimise out some indirect calls
Diffstat (limited to 'src/effectvehicle_base.h')
-rw-r--r--src/effectvehicle_base.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/effectvehicle_base.h b/src/effectvehicle_base.h
index c16ee5f53..e3403b851 100644
--- a/src/effectvehicle_base.h
+++ b/src/effectvehicle_base.h
@@ -22,7 +22,7 @@
* - bulldozer (road works)
* - bubbles (industry)
*/
-struct EffectVehicle : public SpecializedVehicle<EffectVehicle, VEH_EFFECT> {
+struct EffectVehicle FINAL : public SpecializedVehicle<EffectVehicle, VEH_EFFECT> {
uint16 animation_state; ///< State primarily used to change the graphics/behaviour.
byte animation_substate; ///< Sub state to time the change of the graphics/behaviour.