Changeset 262 for trunk/src/root.cc


Ignore:
Timestamp:
06/19/14 00:02:55 (11 years ago)
Author:
epyon
Message:
  • major decoupling lua system independent of nv::object nv::object support for lua opt-in lua system independent of types.hh
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/root.cc

    r257 r262  
    2424        if ( m_lua_state && o->m_lua_index != lua::ref_none )
    2525        {
    26                 m_lua_state->unregister_object( o );
     26                m_lua_state->unregister_object( o->m_lua_index );
    2727        }
    2828        if ( m_uid_store && o->m_uid != 0 )
     
    5151                if ( storage != nullptr )
    5252                {
    53                         o->m_lua_proto_index = m_lua_state->register_proto( o, storage );
     53                        o->m_lua_proto_index = m_lua_state->register_proto( o->get_id().c_str(), storage );
    5454                }
    5555        }
Note: See TracChangeset for help on using the changeset viewer.