- Timestamp:
- 08/12/14 01:51:21 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lua/lua_state.cc
r296 r305 118 118 m_global = false; 119 119 m_level = lua_gettop( m_state ); 120 if ( !p.resolve( m_state, global ) ) 121 { 120 if ( !p.resolve( m_state, global ) || lua_type(m_state, -1) != LUA_TTABLE ) 121 { 122 NV_LOG( LOG_ERROR, "Could not resolve table!" ); 122 123 // TODO : error handling 123 124 } … … 129 130 m_global = false; 130 131 m_level = lua_gettop( m_state ); 131 if ( !p.resolve( m_state, false ) ) 132 { 132 if ( !p.resolve( m_state, false ) || lua_type(m_state, -1) != LUA_TTABLE ) 133 { 134 NV_LOG( LOG_ERROR, "Could not resolve table!" ); 133 135 // TODO : error handling 134 136 }
Note: See TracChangeset
for help on using the changeset viewer.