Ignore:
Timestamp:
07/21/15 13:31:23 (10 years ago)
Author:
epyon
Message:
  • hash storage type
  • string hash storage type
  • several minor fixes
  • more cleanups needed
File:
1 edited

Legend:

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

    r406 r431  
    137137{
    138138        nv::map_area* ma = to_map_area( L, 1 );
    139         lua_pushstring( L, ma->id_to_string( ma->get_cell( to_coord( L, 2 ) ) ).c_str() );
     139        nv::string_view result( ma->id_to_string( ma->get_cell( to_coord( L, 2 ) ) ) );
     140        lua_pushlstring( L, result.data(), result.size() );
    140141        return 1;
    141142}
Note: See TracChangeset for help on using the changeset viewer.