Bug fix for loading some modded drawables

This commit is contained in:
dexy 2020-04-20 23:58:25 +10:00
parent a510b9b37a
commit e77c2b95ec

View File

@ -4329,7 +4329,7 @@ namespace CodeWalker.GameFiles
this.ShaderGroup = reader.ReadBlockAt<ShaderGroup>(this.ShaderGroupPointer);
this.Skeleton = reader.ReadBlockAt<Skeleton>(this.SkeletonPointer);
this.Joints = reader.ReadBlockAt<Joints>(this.JointsPointer);
this.DrawableModels = reader.ReadBlockAt<DrawableModelsBlock>(this.DrawableModelsPointer, this);
this.DrawableModels = reader.ReadBlockAt<DrawableModelsBlock>((DrawableModelsPointer == 0) ? DrawableModelsHighPointer : DrawableModelsPointer, this);
BuildAllModels();