A little extra safety

This commit is contained in:
Matt Nadareski
2021-09-10 20:59:39 -07:00
parent 44fac8cc92
commit 9f676732a4

View File

@@ -517,7 +517,10 @@ namespace BurnOutSharp.Tools
if (resourceSection == null)
return null;
// Try to get the matching resource
var resource = FindResourceInSection(resourceSection, dataContains: "V\0S\0_\0V\0E\0R\0S\0I\0O\0N\0_\0I\0N\0F\0O\0");
if (resource?.Data == null)
return null;
try
{