From 9e8717390503710edcd446714bd8c881c9ef2ace Mon Sep 17 00:00:00 2001 From: Kawe Mazidjatari <48657826+Mauler125@users.noreply.github.com> Date: Wed, 18 Dec 2024 19:36:24 +0100 Subject: [PATCH] Fix bug caused by typo Using colpass guid when setting txan asset reference, should use txan guid. --- src/assets/material.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/assets/material.cpp b/src/assets/material.cpp index 85db290..385d74a 100644 --- a/src/assets/material.cpp +++ b/src/assets/material.cpp @@ -838,7 +838,7 @@ void Assets::AddMaterialAsset_v15(CPakFile* const pak, const PakGuid_t assetGuid { pak->AddGuidDescriptor(&guids, hdrChunk.GetPointer(offsetof(MaterialAssetHeader_v15_t, textureAnimation))); - PakAsset_t* txanAsset = pak->GetAssetByGuid(matlAsset.colpassMaterial, nullptr, true); + PakAsset_t* txanAsset = pak->GetAssetByGuid(matlAsset.textureAnimation, nullptr, true); if (txanAsset) pak->SetCurrentAssetAsDependentForAsset(txanAsset);