Changeset 265 for trunk/src/root.cc
- Timestamp:
- 06/19/14 02:22:56 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/root.cc
r264 r265 22 22 destroy_children( o ); 23 23 o->detach(); 24 if ( m_lua_state && o->m_lua_index != lua::ref _none )24 if ( m_lua_state && o->m_lua_index != lua::ref::none ) 25 25 { 26 m_lua_state->unregister_object( o->m_lua_index);26 m_lua_state->unregister_object( lua::ref( o->m_lua_index ) ); 27 27 } 28 28 if ( m_uid_store && o->m_uid != 0 ) … … 47 47 if ( lua_name != nullptr ) 48 48 { 49 o->m_lua_index = m_lua_state->register_object( o, lua_name ) ;49 o->m_lua_index = m_lua_state->register_object( o, lua_name ).get(); 50 50 } 51 51 if ( storage != nullptr ) 52 52 { 53 o->m_lua_proto_index = m_lua_state->register_proto( o->get_id().c_str(), storage ) ;53 o->m_lua_proto_index = m_lua_state->register_proto( o->get_id().c_str(), storage ).get(); 54 54 } 55 55 }
Note: See TracChangeset
for help on using the changeset viewer.