Skip to content

Commit

Permalink
safe casting
Browse files Browse the repository at this point in the history
  • Loading branch information
sonicdcer committed Nov 23, 2024
1 parent 8f1c001 commit 41ed7a1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/overlays/ovl_i5/fox_ma.c
Original file line number Diff line number Diff line change
Expand Up @@ -3798,7 +3798,8 @@ void Macbeth_MaFallingBoulder_Update(MaFallingBoulder* this) {
}

Macbeth_MaBoulder_Spawn(this->obj.pos.x, this->obj.pos.y, this->obj.pos.z,
(RAND_FLOAT(2.0f) + 20.0f) * this->iwork[4], 0.0f, this->iwork[4] * -34.0f, 0.0f, 2, 3);
(RAND_FLOAT(2.0f) + 20.0f) * (s32) this->iwork[4], 0.0f, (s32) this->iwork[4] * -34.0f,
0.0f, 2, 3);
Object_Kill(&this->obj, this->sfxSource);
}
}
Expand Down

0 comments on commit 41ed7a1

Please sign in to comment.