Fix return UB (#958)

* Ydan_SP

* func_8002D7EC

* Gameplay_ChangeCameraStatus

* Graph_InitTHGA

* CollisioCheck_LineOC

* Fix more in camera and jpeg

* revert comment in player
This commit is contained in:
louist103
2021-09-12 07:02:45 -04:00
committed by GitHub
parent 90c841c435
commit e31e35658d
9 changed files with 12 additions and 11 deletions
@@ -153,7 +153,7 @@ void BgYdanSp_Destroy(Actor* thisx, GlobalContext* globalCtx) {
Collider_DestroyTris(globalCtx, &this->trisCollider);
}
void* BgYdanSp_UpdateFloorWebCollision(BgYdanSp* this) {
void BgYdanSp_UpdateFloorWebCollision(BgYdanSp* this) {
s16 newY;
CollisionHeader* colHeader;
+1 -1
View File
@@ -566,7 +566,7 @@ s32 EnSt_DecrStunTimer(EnSt* this) {
if (this->stunTimer == 0) {
return 0;
}
this->stunTimer--; //! @bug ? no return but v0 ends up being stunTimer before decrement
this->stunTimer--; //! @bug no return but v0 ends up being stunTimer before decrement
}
/**