Ignore:
Timestamp:
03/08/16 08:05:51 (9 years ago)
Author:
epyon
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/formats/nmd_loader.cc

    r486 r487  
    6666{
    6767        if ( count == 0 ) return;
    68         source.seek( count * sizeof( nmd_attribute ), origin::CUR );
     68        source.seek( long( count * sizeof( nmd_attribute ) ), origin::CUR );
    6969}
    7070
     
    220220void nv::nmd_dump_bones( stream& stream_out, const data_node_list& nodes )
    221221{
    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();
    227223
    228224        nmd_element_header header;
Note: See TracChangeset for help on using the changeset viewer.