summaryrefslogtreecommitdiff
path: root/src/subsidy_base.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/subsidy_base.h')
-rw-r--r--src/subsidy_base.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/subsidy_base.h b/src/subsidy_base.h
index d172adfa5..aaba0fea5 100644
--- a/src/subsidy_base.h
+++ b/src/subsidy_base.h
@@ -8,6 +8,8 @@
#include "cargo_type.h"
#include "company_type.h"
+typedef uint16 SubsidyID; ///< ID of a subsidy
+
/** Struct about subsidies, offered and awarded */
struct Subsidy {
CargoID cargo_type; ///< Cargo type involved in this subsidy, CT_INVALID for invalid subsidy
@@ -19,7 +21,7 @@ struct Subsidy {
* Determines index of this subsidy
* @return index (in the Subsidy::array array)
*/
- FORCEINLINE size_t Index() const
+ FORCEINLINE SubsidyID Index() const
{
return this - Subsidy::array;
}