Changeset 541 for trunk/src/lua/lua_state.cc
- Timestamp:
- 01/31/17 14:09:44 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lua/lua_state.cc
r540 r541 153 153 // TODO : error handling 154 154 } 155 m_index = -1;155 m_index = nlua_absindex( m_state, -1 ); 156 156 } 157 157 … … 166 166 // TODO : error handling 167 167 } 168 m_index = -1;168 m_index = nlua_absindex( m_state, -1 ); 169 169 } 170 170 171 171 lua::table_guard::~table_guard() 172 172 { 173 if ( m_ index == -1)173 if ( m_level != lua_gettop( m_state ) ) 174 174 lua_settop( m_state, m_level ); 175 175 } … … 184 184 { 185 185 m_level = lua_gettop( m_state ); 186 m_index = proxy.m_index;186 m_index = nlua_absindex( m_state, proxy.m_index ); 187 187 } 188 188
Note: See TracChangeset
for help on using the changeset viewer.