mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2025-08-19 04:50:05 -07:00
fix: prevent oob access of sequenceMap (#2123)
Co-authored-by: briaguya <briaguya@alice>
This commit is contained in:
parent
274c12f3cb
commit
408143ec8c
1 changed files with 1 additions and 1 deletions
|
@ -486,7 +486,7 @@ u8* AudioLoad_GetFontsForSequence(s32 seqId, u32* outNumFonts) {
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
u16 newSeqId = SfxEditor_GetReplacementSeq(seqId);
|
u16 newSeqId = SfxEditor_GetReplacementSeq(seqId);
|
||||||
if (!sequenceMap[newSeqId]){
|
if (newSeqId > MAX_SEQUENCES || !sequenceMap[newSeqId]) {
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
SequenceData sDat = ResourceMgr_LoadSeqByName(sequenceMap[newSeqId]);
|
SequenceData sDat = ResourceMgr_LoadSeqByName(sequenceMap[newSeqId]);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue