From 33d283fdb1710e40cff4daaabde6aa78325d4623 Mon Sep 17 00:00:00 2001 From: smatz Date: Sun, 18 Dec 2011 17:17:18 +0000 Subject: (svn r23588) -Codechange: use the 'final' keyword so compiler can optimise out some indirect calls --- src/roadveh.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/roadveh.h') 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 { +struct RoadVehicle FINAL : public GroundVehicle { byte state; ///< @see RoadVehicleStates byte frame; uint16 blocked_ctr; -- cgit v1.2.3-54-g00ecf