diff options
Diffstat (limited to 'RenderScript/include')
| -rw-r--r-- | RenderScript/include/LuaBindings.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/RenderScript/include/LuaBindings.h b/RenderScript/include/LuaBindings.h index 468145f..62dea95 100644 --- a/RenderScript/include/LuaBindings.h +++ b/RenderScript/include/LuaBindings.h @@ -478,7 +478,8 @@ namespace Diligent int ArrayInd = 1; for( auto it = m_EnumMapping.m_Val2StrMap.begin(); it != m_EnumMapping.m_Val2StrMap.end(); ++it ) { - if( it->first != 0 && static_cast<EnumType>(Flags & it->first) == it->first || Flags == 0 && it->first == 0) + if( (it->first != 0 && static_cast<EnumType>(Flags & it->first) == it->first) || + (Flags == 0 && it->first == 0) ) { lua_pushnumber( L, ArrayInd ); // -0 | +1 -> +1 PushValue<const String&>( L, it->second ); // -0 | +1 -> +1 |
