SwitchTimerMultiplier: fix crash due to missing actor param (#5593)
This commit is contained in:
@@ -134,7 +134,7 @@ void BgGndDarkmeiro_UpdateBlockTimer(BgGndDarkmeiro* this, PlayState* play) {
|
|||||||
if (Flags_GetSwitch(play, ((this->dyna.actor.params >> 8) & 0x3F) + 2)) {
|
if (Flags_GetSwitch(play, ((this->dyna.actor.params >> 8) & 0x3F) + 2)) {
|
||||||
if (this->actionFlags & 8) {
|
if (this->actionFlags & 8) {
|
||||||
if (this->timer2 > 0) {
|
if (this->timer2 > 0) {
|
||||||
if (GameInteractor_Should(VB_SWITCH_TIMER_TICK, true, &this->timer2)) {
|
if (GameInteractor_Should(VB_SWITCH_TIMER_TICK, true, this, &this->timer2)) {
|
||||||
this->timer2--;
|
this->timer2--;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@@ -169,7 +169,7 @@ void BgRelayObjects_DoNothing(BgRelayObjects* this, PlayState* play) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void func_808A932C(BgRelayObjects* this, PlayState* play) {
|
void func_808A932C(BgRelayObjects* this, PlayState* play) {
|
||||||
if (GameInteractor_Should(VB_SWITCH_TIMER_TICK, this->timer != 0, &this->timer)) {
|
if (GameInteractor_Should(VB_SWITCH_TIMER_TICK, this->timer != 0, this, &this->timer)) {
|
||||||
this->timer--;
|
this->timer--;
|
||||||
}
|
}
|
||||||
if (this->timer == 0) {
|
if (this->timer == 0) {
|
||||||
|
|||||||
Reference in New Issue
Block a user