--- a/src/train.h Wed May 02 09:29:41 2007 +0000
+++ b/src/train.h Wed May 02 09:39:11 2007 +0000
@@ -243,11 +243,11 @@
/** We want to 'destruct' the right class. */
virtual ~Train() {}
- const char *GetTypeString() { return "train"; }
+ const char *GetTypeString() const { return "train"; }
void MarkDirty();
void UpdateDeltaXY(Direction direction);
- ExpensesType GetExpenseType(bool income) { return income ? EXPENSES_TRAIN_INC : EXPENSES_TRAIN_RUN; }
- WindowClass GetVehicleListWindowClass() { return WC_TRAINS_LIST; }
+ ExpensesType GetExpenseType(bool income) const { return income ? EXPENSES_TRAIN_INC : EXPENSES_TRAIN_RUN; }
+ WindowClass GetVehicleListWindowClass() const { return WC_TRAINS_LIST; }
};
#endif /* TRAIN_H */