From 9f676732a4267df4e27c95e2f90467843062f9a8 Mon Sep 17 00:00:00 2001 From: Matt Nadareski Date: Fri, 10 Sep 2021 20:59:39 -0700 Subject: [PATCH] A little extra safety --- BurnOutSharp/Tools/Utilities.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/BurnOutSharp/Tools/Utilities.cs b/BurnOutSharp/Tools/Utilities.cs index 7ad6241e..3b47bebf 100644 --- a/BurnOutSharp/Tools/Utilities.cs +++ b/BurnOutSharp/Tools/Utilities.cs @@ -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 {