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/train.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/train.h')
-rw-r--r-- | src/train.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/train.h b/src/train.h index 9bc40fe97..37f64a2dc 100644 --- a/src/train.h +++ b/src/train.h @@ -67,7 +67,7 @@ struct TrainCache { /** * 'Train' is either a loco or a wagon. */ -struct Train : public GroundVehicle<Train, VEH_TRAIN> { +struct Train FINAL : public GroundVehicle<Train, VEH_TRAIN> { TrainCache tcache; /* Link between the two ends of a multiheaded engine */ |