summaryrefslogtreecommitdiff
path: root/soh/src/code
diff options
context:
space:
mode:
authorPurpleHato <linkvssangoku.jr@gmail.com>2026-04-06 21:01:12 +0200
committerGitHub <noreply@github.com>2026-04-06 19:01:12 +0000
commit262958a2eb0106871f0adde66fe569773c29aef7 (patch)
treeb85e81aa3103831173ffba72a3986c0cd0fc34e2 /soh/src/code
parente86e0ff6938079b5cbd5ce28a23920ea98f6690e (diff)
Alt Toggle for Custom animation (#6433)
Add explicit alt prefix checking to animation loading Makes ResourceMgr_LoadAnimByName alt-toggleable this will work for Link and any other animations files
Diffstat (limited to 'soh/src/code')
-rw-r--r--soh/src/code/z_skelanime.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/soh/src/code/z_skelanime.c b/soh/src/code/z_skelanime.c
index 4335df0c8..3449c2ed9 100644
--- a/soh/src/code/z_skelanime.c
+++ b/soh/src/code/z_skelanime.c
@@ -902,6 +902,10 @@ void AnimationContext_SetLoadFrame(PlayState* play, LinkAnimationHeader* animati
if (frame < 0) {
frame = 0;
}
+ // SOH [Alt Assets] Check if animData is null (can happen if animation data segment failed to load)
+ if (animData == NULL) {
+ return;
+ }
memcpy(ram, (uintptr_t)animData + (((sizeof(Vec3s) * limbCount + 2) * frame)), sizeof(Vec3s) * limbCount + 2);
}
}