core: Preload should always start from the place we left off from.

This commit is contained in:
David Wendt 2022-09-02 19:58:05 -04:00 committed by kmeisthax
parent afd29d19a4
commit ea284ed6bf
1 changed files with 1 additions and 1 deletions

View File

@ -379,7 +379,7 @@ impl<'gc> MovieClip<'gc> {
// Should be able to hoist this up somewhere, or use MaybeUninit.
let mut static_data = (&*self.0.read().static_data).clone();
let data = self.0.read().static_data.swf.clone();
let mut reader = data.read_from(0);
let mut reader = data.read_from(static_data.preload_progress.read().next_preload_chunk);
let (mut cur_frame, mut start_pos) = {
let read = static_data.preload_progress.read();
(read.cur_preload_frame, read.last_frame_start_pos)