Fix for crash when rendering some vehicles

This commit is contained in:
dexy 2020-02-05 15:42:09 +11:00
parent 96cac975f5
commit e95df81169

View File

@ -3490,7 +3490,7 @@ namespace CodeWalker.Rendering
if ((dtex == null) && (ytd2 == null))// rndbl.SDtxds.Length == 0)//texture not found..
{
if (drawable.ShaderGroup.TextureDictionary != null)//check any embedded texdict
if (drawable.ShaderGroup?.TextureDictionary != null)//check any embedded texdict
{
dtex = drawable.ShaderGroup.TextureDictionary.Lookup(tex.NameHash);
if (dtex != null)