From d762132273306b37db3e619a8034d379ba3c5dd6 Mon Sep 17 00:00:00 2001 From: Christian Semmler Date: Mon, 15 Jan 2024 14:30:14 -0500 Subject: [PATCH] Match StreamingTickle --- LEGO1/lego/legoomni/include/legoanimpresenter.h | 2 +- LEGO1/lego/legoomni/src/video/legoanimpresenter.cpp | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/LEGO1/lego/legoomni/include/legoanimpresenter.h b/LEGO1/lego/legoomni/include/legoanimpresenter.h index 48530fa7..370b20b2 100644 --- a/LEGO1/lego/legoomni/include/legoanimpresenter.h +++ b/LEGO1/lego/legoomni/include/legoanimpresenter.h @@ -97,7 +97,7 @@ class LegoAnimClass : public LegoAnimClassBase { virtual void VTable0xc() override; // vtable+0x0c virtual MxResult VTable0x10(LegoMemoryStream* p_stream, MxS32); // vtable+0x10 - undefined4 m_unk0x8; // 0x08 + MxLong m_unk0x8; // 0x08 undefined4 m_unk0xc; // 0x0c undefined4 m_unk0x10; // 0x10 undefined4 m_unk0x14; // 0x14 diff --git a/LEGO1/lego/legoomni/src/video/legoanimpresenter.cpp b/LEGO1/lego/legoomni/src/video/legoanimpresenter.cpp index 2f2f32f4..8ee85a95 100644 --- a/LEGO1/lego/legoomni/src/video/legoanimpresenter.cpp +++ b/LEGO1/lego/legoomni/src/video/legoanimpresenter.cpp @@ -136,7 +136,8 @@ void LegoAnimPresenter::StartingTickle() void LegoAnimPresenter::StreamingTickle() { if (m_subscriber->CurrentChunk()) { - m_subscriber->DestroyChunk(m_subscriber->NextChunk()); + MxStreamChunk* chunk = m_subscriber->NextChunk(); + m_subscriber->DestroyChunk(chunk); } if (m_unk0x95 == 0) {