Minor fixes

This commit is contained in:
Wojtek Figat
2025-03-17 16:37:28 +01:00
parent 7ee2e66881
commit 80df074b5f
2 changed files with 2 additions and 2 deletions

View File

@@ -211,7 +211,7 @@ void AnimationGraph::FindDependencies(AnimGraphBase* graph)
{
for (const auto& node : graph->Nodes)
{
if (node.Type == GRAPH_NODE_MAKE_TYPE(9, 24))
if (node.Type == GRAPH_NODE_MAKE_TYPE(9, 24) && node.Assets.Count() > 0)
{
const auto function = node.Assets[0].As<AnimationGraphFunction>();
if (function)