Skip to content

Commit

Permalink
add missing seek to animation loading
Browse files Browse the repository at this point in the history
  • Loading branch information
AdrianAtGoogle committed Oct 11, 2023
1 parent 3b6c98e commit fd82ac8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/crate-reader.cc
Original file line number Diff line number Diff line change
Expand Up @@ -889,6 +889,7 @@ bool CrateReader::ReadTimeSamples(value::TimeSamples *d) {

// Move to next location.
// sizeof(uint64) = sizeof(ValueRep)
_sr->seek_set(values_offset);
if (!_sr->seek_from_current(int64_t(sizeof(uint64_t) * num_values))) {
PUSH_ERROR_AND_RETURN_TAG(kTag, "Failed to seek over TimeSamples's values.");
}
Expand Down

0 comments on commit fd82ac8

Please sign in to comment.