diff options
author | smatz <smatz@openttd.org> | 2011-12-18 17:17:18 +0000 |
---|---|---|
committer | smatz <smatz@openttd.org> | 2011-12-18 17:17:18 +0000 |
commit | 33d283fdb1710e40cff4daaabde6aa78325d4623 (patch) | |
tree | 474b5ad5f9b38019a1985a4b1a29ada6a7560260 /src/roadveh.h | |
parent | 88f1acd26bb2d7872526e4abc89549f622bb75ea (diff) | |
download | openttd-33d283fdb1710e40cff4daaabde6aa78325d4623.tar.xz |
(svn r23588) -Codechange: use the 'final' keyword so compiler can optimise out some indirect calls
Diffstat (limited to 'src/roadveh.h')
-rw-r--r-- | src/roadveh.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/roadveh.h b/src/roadveh.h index 3323ee9f5..516c616fd 100644 --- a/src/roadveh.h +++ b/src/roadveh.h @@ -84,7 +84,7 @@ void RoadVehUpdateCache(RoadVehicle *v, bool same_length = false); /** * Buses, trucks and trams belong to this class. */ -struct RoadVehicle : public GroundVehicle<RoadVehicle, VEH_ROAD> { +struct RoadVehicle FINAL : public GroundVehicle<RoadVehicle, VEH_ROAD> { byte state; ///< @see RoadVehicleStates byte frame; uint16 blocked_ctr; |