diff options
author | smatz <smatz@openttd.org> | 2009-07-02 12:47:52 +0000 |
---|---|---|
committer | smatz <smatz@openttd.org> | 2009-07-02 12:47:52 +0000 |
commit | 1e6a12b75b48f879a636cdd63f471c1aeed044bd (patch) | |
tree | e4268e815c1d19e7d4241f7acd49ce7cf004cee4 /src/subsidy_base.h | |
parent | 6a0855f0d1cd953c8774a03a1abc06553310f1a5 (diff) | |
download | openttd-1e6a12b75b48f879a636cdd63f471c1aeed044bd.tar.xz |
(svn r16724) -Fix (r16714): MSVC 64bit warnings (Rubidium)
Diffstat (limited to 'src/subsidy_base.h')
-rw-r--r-- | src/subsidy_base.h | 4 |
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; } |