forked from mirror/OpenTTD
(svn r23588) -Codechange: use the 'final' keyword so compiler can optimise out some indirect calls
This commit is contained in:
@@ -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 */
|
||||
|
Reference in New Issue
Block a user