Merge remote-tracking branch 'origin' into new-exe-framework

This commit is contained in:
Matt Nadareski
2022-12-03 22:29:12 -08:00

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];