mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2025-07-16 10:02:59 -07:00
prevent OOB write for BGM fix in grotto mixed pools (#5572)
This commit is contained in:
parent
40da9997c5
commit
ad850e50b1
1 changed files with 3 additions and 1 deletions
|
@ -253,7 +253,9 @@ void Entrance_Init(void) {
|
||||||
for (s16 i = 0; i < 4; i++) {
|
for (s16 i = 0; i < 4; i++) {
|
||||||
// Zero out the bit in the field which tells the game to keep playing
|
// Zero out the bit in the field which tells the game to keep playing
|
||||||
// background music for all four scene setups at each index
|
// background music for all four scene setups at each index
|
||||||
gEntranceTable[override + i].field &= ~ENTRANCE_INFO_CONTINUE_BGM_FLAG;
|
if (override + i < ENTRANCE_TABLE_SIZE) {
|
||||||
|
gEntranceTable[override + i].field &= ~ENTRANCE_INFO_CONTINUE_BGM_FLAG;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue