Fix Lua::Push for enums

develop
lethosor 2016-07-29 11:06:16 -04:00
parent e8fe72826f
commit 55970a71ab
1 changed files with 1 additions and 1 deletions

@ -287,7 +287,7 @@ namespace DFHack {namespace Lua {
#undef NUMBER_PUSH #undef NUMBER_PUSH
#else #else
template<class T> template<class T>
inline typename std::enable_if<std::is_integral<T>::value>::type inline typename std::enable_if<std::is_integral<T>::value || std::is_enum<T>::value>::type
Push(lua_State *state, T value) { Push(lua_State *state, T value) {
lua_pushinteger(state, value); lua_pushinteger(state, value);
} }