support empty RcImmutableArray

This commit is contained in:
ikpil 2023-09-02 15:11:19 +09:00
parent 3915a4418c
commit d7f9b6e348
1 changed files with 1 additions and 1 deletions

View File

@ -18,7 +18,7 @@ namespace DotRecast.Core
private sealed class EnumeratorObject : IEnumerator<T> private sealed class EnumeratorObject : IEnumerator<T>
{ {
private static readonly IEnumerator<T> EmptyEnumerator = Create(Empty._array!); private static readonly IEnumerator<T> EmptyEnumerator = new EnumeratorObject(Empty._array!);
private readonly T[] _array; private readonly T[] _array;
private int _index; private int _index;