summaryrefslogtreecommitdiff
path: root/src/code/z_actor.c
diff options
context:
space:
mode:
authorlouist103 <35883445+louist103@users.noreply.github.com>2021-09-12 07:02:45 -0400
committerGitHub <noreply@github.com>2021-09-12 13:02:45 +0200
commite31e35658dd08e9f983eef8aef0e239ecd603333 (patch)
tree860251b0e12df6da711197463c3b3f145db73ab4 /src/code/z_actor.c
parent90c841c435463dc4601b371e2d19d7a6f7da4bac (diff)
Fix return UB (#958)
* Ydan_SP * func_8002D7EC * Gameplay_ChangeCameraStatus * Graph_InitTHGA * CollisioCheck_LineOC * Fix more in camera and jpeg * revert comment in player
Diffstat (limited to 'src/code/z_actor.c')
-rw-r--r--src/code/z_actor.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/code/z_actor.c b/src/code/z_actor.c
index 1cbb2027d..a0dc3d788 100644
--- a/src/code/z_actor.c
+++ b/src/code/z_actor.c
@@ -845,7 +845,7 @@ void Actor_Destroy(Actor* actor, GlobalContext* globalCtx) {
}
}
-s16 func_8002D7EC(Actor* actor) {
+void func_8002D7EC(Actor* actor) {
f32 speedRate = R_UPDATE_RATE * 0.5f;
actor->world.pos.x += (actor->velocity.x * speedRate) + actor->colChkInfo.displacement.x;