mirror of
https://github.com/hedge-dev/UnleashedRecomp.git
synced 2026-05-10 03:01:36 +00:00
Fix crash in earth restoration cutscenes.
This commit is contained in:
parent
8c0130ba4d
commit
922d287806
1 changed files with 30 additions and 28 deletions
|
|
@ -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);
|
||||||
|
|
@ -300,6 +301,7 @@ PPC_FUNC(sub_8258B558)
|
||||||
PPC_STORE_U32(textBox + 0x38, reinterpret_cast<uint32_t&>(value));
|
PPC_STORE_U32(textBox + 0x38, reinterpret_cast<uint32_t&>(value));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
enum
|
enum
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue