summaryrefslogtreecommitdiff
path: root/src/code
diff options
context:
space:
mode:
Diffstat (limited to 'src/code')
-rw-r--r--src/code/z_actor.c2
-rw-r--r--src/code/z_skin_awb.c3
2 files changed, 3 insertions, 2 deletions
diff --git a/src/code/z_actor.c b/src/code/z_actor.c
index 98ecdc4d2..9a0e62319 100644
--- a/src/code/z_actor.c
+++ b/src/code/z_actor.c
@@ -847,7 +847,7 @@ void Actor_Destroy(Actor* actor, GlobalContext* globalCtx) {
}
}
-void func_8002D7EC(Actor* actor) {
+s16 func_8002D7EC(Actor* actor) {
f32 speedRate = R_UPDATE_RATE * 0.5f;
actor->world.pos.x += (actor->velocity.x * speedRate) + actor->colChkInfo.displacement.x;
diff --git a/src/code/z_skin_awb.c b/src/code/z_skin_awb.c
index 4b0b34eec..121556b8b 100644
--- a/src/code/z_skin_awb.c
+++ b/src/code/z_skin_awb.c
@@ -72,8 +72,9 @@ void func_800A663C(GlobalContext* globalCtx, PSkinAwb* skin, SkeletonHeader* ske
}
void func_800A6888(GlobalContext* globalCtx, PSkinAwb* arg1) {
- s32 i;
if (arg1->avbTbl != NULL) {
+ s32 i;
+
for (i = 0; i < arg1->avbCount; i++) {
if (arg1->avbTbl[i].buf[0] != 0) {
ZeldaArena_FreeDebug(arg1->avbTbl[i].buf[0], "../z_skin_awb.c", 276);