Changeset 431 for trunk/src/lua/lua_map_area.cc
- Timestamp:
- 07/21/15 13:31:23 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lua/lua_map_area.cc
r406 r431 137 137 { 138 138 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() ); 140 141 return 1; 141 142 }
Note: See TracChangeset
for help on using the changeset viewer.