Changeset 487 for trunk/src/formats/nmd_loader.cc
- Timestamp:
- 03/08/16 08:05:51 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/formats/nmd_loader.cc
r486 r487 66 66 { 67 67 if ( count == 0 ) return; 68 source.seek( count * sizeof( nmd_attribute), origin::CUR );68 source.seek( long( count * sizeof( nmd_attribute ) ), origin::CUR ); 69 69 } 70 70 … … 220 220 void nv::nmd_dump_bones( stream& stream_out, const data_node_list& nodes ) 221 221 { 222 uint32 total = sizeof( nmd_animation_header ); 223 for ( auto node : nodes ) 224 { 225 total += sizeof( nmd_element_header ); 226 } 222 uint32 total = sizeof( nmd_animation_header ) + sizeof( nmd_element_header ) * nodes.size(); 227 223 228 224 nmd_element_header header;
Note: See TracChangeset
for help on using the changeset viewer.