(svn r23588) -Codechange: use the 'final' keyword so compiler can optimise out some indirect calls
This commit is contained in:
@@ -21,7 +21,7 @@ WaterClass GetEffectiveWaterClass(TileIndex tile);
|
||||
/**
|
||||
* All ships have this type.
|
||||
*/
|
||||
struct Ship: public SpecializedVehicle<Ship, VEH_SHIP> {
|
||||
struct Ship FINAL : public SpecializedVehicle<Ship, VEH_SHIP> {
|
||||
TrackBitsByte state; ///< The "track" the ship is following.
|
||||
|
||||
/** We don't want GCC to zero our struct! It already is zeroed and has an index! */
|
||||
|
Reference in New Issue
Block a user