diff options
| author | Tharo <17233964+Thar0@users.noreply.github.com> | 2023-11-11 12:34:27 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-11-11 09:34:27 -0300 |
| commit | b2535fc75a845adffbec760f58c2d654b99f2964 (patch) | |
| tree | d03a65dd87038640dd0417ad48e6406cac07d1ec /src/code | |
| parent | a441a3cb2d51632f07b79579f0b100b962a3be76 (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.c | 2 |
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; |
