Skip to content

Commit

Permalink
[Sonic Frontiers] Player.Animation.SetAnimation(): fix Detours crash
Browse files Browse the repository at this point in the history
  • Loading branch information
hyperbx committed Nov 12, 2023
1 parent 4330841 commit 44bfd18
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/Sonic Frontiers/Libraries/Player.hmm
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ Library "Player" by "Hyper, NM, Ahremic, Skyth & Sajid"
public static class Animation
{
/* 0x1408122E0 */
private static long _sigSetAnimation = ScanSignature("\x40\x53\x48\x83\xEC\x20\xF6\x81\x78\x01\x00\x00\x10\x48\x8B\xDA", "xxxxxxxxxxxxxxxx");
private static long _sigSetAnimation = Memory.ReadCall(ScanSignature("\xE8\xCC\xCC\xCC\xCC\x80\xBD\xB0\x00\x00\x00\x00\x48\x8B\x9C\x24\xB8\x00\x00\x00", "x????xxxxxxxxxxxxxxx"));
FUNCTION_PTR(void, fpSetAnimation, _sigSetAnimation, GOCPlayerVisual* in_pGOCPlayerVisual, long in_pAnimationName, byte in_unk1)

/* 0x140813140 */
Expand Down

0 comments on commit 44bfd18

Please sign in to comment.