summaryrefslogtreecommitdiff
path: root/src/ship.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/ship.h')
-rw-r--r--src/ship.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ship.h b/src/ship.h
index 0d4e324ae..fe5598230 100644
--- a/src/ship.h
+++ b/src/ship.h
@@ -39,11 +39,11 @@ struct Ship: public Vehicle {
/** We want to 'destruct' the right class. */
virtual ~Ship() {}
- const char *GetTypeString() { return "ship"; }
+ const char *GetTypeString() const { return "ship"; }
void MarkDirty();
void UpdateDeltaXY(Direction direction);
- ExpensesType GetExpenseType(bool income) { return income ? EXPENSES_SHIP_INC : EXPENSES_SHIP_RUN; }
- WindowClass GetVehicleListWindowClass() { return WC_SHIPS_LIST; }
+ ExpensesType GetExpenseType(bool income) const { return income ? EXPENSES_SHIP_INC : EXPENSES_SHIP_RUN; }
+ WindowClass GetVehicleListWindowClass() const { return WC_SHIPS_LIST; }
};
#endif /* SHIP_H */