Skip to content

Commit

Permalink
Fix bug caused by typo
Browse files Browse the repository at this point in the history
Using colpass guid when setting txan asset reference, should use txan guid.
  • Loading branch information
Mauler125 committed Dec 18, 2024
1 parent fdcfe20 commit 9e87173
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/assets/material.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 9e87173

Please sign in to comment.