Skip to content

Commit df3d9d6

Browse files
committed
fix column index
1 parent ec33411 commit df3d9d6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Query.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ public readonly int Count
185185
[MethodImpl(MethodImplOptions.AggressiveInlining)]
186186
public readonly int GetColumnIndexOf<T>() where T : struct
187187
{
188-
return _archetypeIterator.Current.GetComponentIndex<T>();
188+
return _indices.IndexOf(_archetypeIterator.Current.GetComponentIndex<T>());
189189
}
190190

191191
[MethodImpl(MethodImplOptions.AggressiveInlining)]

0 commit comments

Comments
 (0)