diff options
Diffstat (limited to 'src/aircraft.h')
-rw-r--r-- | src/aircraft.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/aircraft.h b/src/aircraft.h index 34c4cdc6a..8af928495 100644 --- a/src/aircraft.h +++ b/src/aircraft.h @@ -130,11 +130,11 @@ struct Aircraft : public Vehicle { /** We want to 'destruct' the right class. */ virtual ~Aircraft() {} - const char *GetTypeString() { return "aircraft"; } + const char *GetTypeString() const { return "aircraft"; } void MarkDirty(); void UpdateDeltaXY(Direction direction); - ExpensesType GetExpenseType(bool income) { return income ? EXPENSES_AIRCRAFT_INC : EXPENSES_AIRCRAFT_RUN; } - WindowClass GetVehicleListWindowClass() { return WC_AIRCRAFT_LIST; } + ExpensesType GetExpenseType(bool income) const { return income ? EXPENSES_AIRCRAFT_INC : EXPENSES_AIRCRAFT_RUN; } + WindowClass GetVehicleListWindowClass() const { return WC_AIRCRAFT_LIST; } }; #endif /* AIRCRAFT_H */ |