mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2024-11-22 17:32:19 -05:00
fix: prevent oob access of sequenceMap (#2123)
Co-authored-by: briaguya <briaguya@alice>
This commit is contained in:
parent
274c12f3cb
commit
408143ec8c
@ -486,7 +486,7 @@ u8* AudioLoad_GetFontsForSequence(s32 seqId, u32* outNumFonts) {
|
||||
return NULL;
|
||||
|
||||
u16 newSeqId = SfxEditor_GetReplacementSeq(seqId);
|
||||
if (!sequenceMap[newSeqId]){
|
||||
if (newSeqId > MAX_SEQUENCES || !sequenceMap[newSeqId]) {
|
||||
return NULL;
|
||||
}
|
||||
SequenceData sDat = ResourceMgr_LoadSeqByName(sequenceMap[newSeqId]);
|
||||
|
Loading…
Reference in New Issue
Block a user