diff options
author | rubidium <rubidium@openttd.org> | 2008-07-18 16:40:29 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2008-07-18 16:40:29 +0000 |
commit | cde65455acbc10a3f64bb9d43c03b37cdf9b1c55 (patch) | |
tree | 82319a3d42401c6d6fa4944e99863807f05c6f5f /src/core | |
parent | 56ad26a3aa231ede631d5bf8cf7e5132b2ff25a1 (diff) | |
download | openttd-cde65455acbc10a3f64bb9d43c03b37cdf9b1c55.tar.xz |
(svn r13731) -Codechange: make a pool of the array of players.
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/enum_type.hpp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/core/enum_type.hpp b/src/core/enum_type.hpp index 717f2c5eb..bd059212c 100644 --- a/src/core/enum_type.hpp +++ b/src/core/enum_type.hpp @@ -94,7 +94,15 @@ struct TinyEnumT /** Assignment operator (from Tenum_t type) */ FORCEINLINE TinyEnumT& operator = (enum_type e) { - m_val = (storage_type)e; return *this; + m_val = (storage_type)e; + return *this; + } + + /** Assignment operator (from Tenum_t type) */ + FORCEINLINE TinyEnumT& operator = (uint u) + { + m_val = (storage_type)u; + return *this; } /** postfix ++ operator on tiny type */ |