summaryrefslogtreecommitdiff
path: root/src/code
diff options
context:
space:
mode:
authorTharo <17233964+Thar0@users.noreply.github.com>2023-11-11 12:34:27 +0000
committerGitHub <noreply@github.com>2023-11-11 09:34:27 -0300
commitb2535fc75a845adffbec760f58c2d654b99f2964 (patch)
treed03a65dd87038640dd0417ad48e6406cac07d1ec /src/code
parenta441a3cb2d51632f07b79579f0b100b962a3be76 (diff)
Fix aliasing in Cutscene_SetActorCue (#1483)
Co-authored-by: Revo <projectrevotpp@hotmail.com>
Diffstat (limited to 'src/code')
-rw-r--r--src/code/z_demo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/code/z_demo.c b/src/code/z_demo.c
index fa0419de4..26221708c 100644
--- a/src/code/z_demo.c
+++ b/src/code/z_demo.c
@@ -1127,7 +1127,7 @@ void Cutscene_SetActorCue(CutsceneContext* csCtx, u8** script, s16 cueChannel) {
*script += sizeof(numCues);
for (i = 0; i < numCues; i++) {
- CsCmdActorCue* cue = *(CsCmdActorCue**)script;
+ CsCmdActorCue* cue = (CsCmdActorCue*)(*script);
if ((csCtx->curFrame >= cue->startFrame) && (csCtx->curFrame < cue->endFrame)) {
csCtx->actorCues[cueChannel] = cue;