Changeset 539 for trunk/src/engine/resource_system.cc
- Timestamp:
- 01/24/17 17:55:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/engine/resource_system.cc
r529 r539 27 27 if ( do_clear ) clear(); 28 28 lua::table_guard table( m_lua, get_storage_name() ); 29 uint32 count = table .get_unsigned( "__counter");29 uint32 count = table["__counter"].get_uint32(); 30 30 for ( auto i : range( count ) ) 31 31 { 32 32 lua::table_guard sub_table( table, i + 1 ); 33 load_resource( sub_table, sub_table.get_string_hash_64( "id" ) ); 33 shash64 id = sub_table["id"].get_shash64(); 34 load_resource( sub_table, id ); 34 35 } 35 36 } … … 39 40 m_id_hash.clear(); 40 41 lua::table_guard table( m_lua, get_storage_name() ); 41 uint32 count = table .get_unsigned( "__counter");42 uint32 count = table["__counter"].get_uint32(); 42 43 for ( auto i : range( count ) ) 43 44 { 44 45 lua::table_guard sub_table( table, i + 1 ); 45 string64 id = sub_table .get_string64( "id");46 string64 id = sub_table["id"].get_string64(); 46 47 NV_ASSERT( m_id_hash.find( id ) == m_id_hash.end(), "HASH COLLISION" ); 47 48 m_id_hash[id] = id;
Note: See TracChangeset
for help on using the changeset viewer.