src/ship.h
changeset 6563 fed2a162046b
parent 6562 077afce9a4ee
child 6593 102aa05c5ca4
--- a/src/ship.h	Wed May 02 09:29:41 2007 +0000
+++ b/src/ship.h	Wed May 02 09:39:11 2007 +0000
@@ -39,11 +39,11 @@
 	/** 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 */