Fix indexed section data read

This commit is contained in:
Matt Nadareski
2022-12-03 22:13:17 -08:00
parent f420434fd3
commit 8a6f481118

View File

@@ -2770,6 +2770,10 @@ namespace BurnOutSharp.Wrappers
uint size = section.SizeOfRawData;
lock (_sourceDataLock)
{
// Create the section data array if we have to
if (_sectionData == null)
_sectionData = new byte[SectionNames.Length][];
// If we already have cached data, just use that immediately
if (_sectionData[index] != null)
return _sectionData[index];