Skip to content

Commit 057868a

Browse files
committed
Fixed ignored element type
1 parent 79430cb commit 057868a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Forge/Statescript/Nodes/EffectApplicationUtilities.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,15 +69,15 @@ public static void WriteHandleOutput(
6969
return;
7070
}
7171

72-
if (variables.TryGetObjectArrayElementType(output.BoundName, out _))
72+
if (variables.TryGetObjectArrayElementType(output.BoundName, out Type? elementType))
7373
{
7474
object?[] values = new object?[handles.Count];
7575
for (int i = 0; i < handles.Count; i++)
7676
{
7777
values[i] = handles[i];
7878
}
7979

80-
variables.DefineObjectArrayVariable(output.BoundName, typeof(ActiveEffectHandle), values);
80+
variables.DefineObjectArrayVariable(output.BoundName, elementType, values);
8181
return;
8282
}
8383

0 commit comments

Comments
 (0)