Ignore:
Timestamp:
06/19/14 02:22:56 (11 years ago)
Author:
epyon
Message:
  • lua::ref lightweight wrapper class
  • allows distinction from int for templates
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lua/lua_map_area.cc

    r263 r265  
    233233}
    234234
    235 void nv::lua::register_map_area_instance( lua_State* L, int object_index, map_area* area )
    236 {
    237         lua_rawgeti( L, LUA_REGISTRYINDEX, object_index );
     235void nv::lua::register_map_area_instance( lua_State* L, ref object_index, map_area* area )
     236{
     237        lua_rawgeti( L, LUA_REGISTRYINDEX, object_index.get() );
    238238        lua_pushstring( L, "__map_area_ptr" );
    239239        lua_pushlightuserdata( L, (map_area*)area );
Note: See TracChangeset for help on using the changeset viewer.