From 3a799389ebf915cc59b6e85346d837621ebe771a Mon Sep 17 00:00:00 2001 From: rubidium Date: Fri, 18 Jul 2008 16:40:29 +0000 Subject: (svn r13731) -Codechange: make a pool of the array of players. --- src/core/enum_type.hpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'src/core') 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 */ -- cgit v1.2.3-54-g00ecf