Fix crash in earth restoration cutscenes.

This commit is contained in:
Skyth 2025-01-13 23:18:42 +03:00
parent 8c0130ba4d
commit 922d287806

View file

@ -259,7 +259,8 @@ PPC_FUNC(sub_8258B558)
__imp__sub_8258B558(ctx, base); __imp__sub_8258B558(ctx, base);
uint32_t worldMapSimpleInfo = PPC_LOAD_U32(r3.u32 + 0x70); uint32_t worldMapSimpleInfo = PPC_LOAD_U32(r3.u32 + 0x70);
if (worldMapSimpleInfo != NULL)
{
auto setPosition = [&](uint32_t rcPtr, float offsetX = 0.0f, float offsetY = 0.0f) auto setPosition = [&](uint32_t rcPtr, float offsetX = 0.0f, float offsetY = 0.0f)
{ {
uint32_t scene = PPC_LOAD_U32(rcPtr + 0x4); uint32_t scene = PPC_LOAD_U32(rcPtr + 0x4);
@ -301,6 +302,7 @@ PPC_FUNC(sub_8258B558)
} }
} }
} }
}
enum enum
{ {