From 968c6deb41e3e6e58c4abb9ac0c2bbb450c4d68a Mon Sep 17 00:00:00 2001 From: Mikhail <99481254+DCFApixels@users.noreply.github.com> Date: Mon, 12 Jun 2023 12:49:41 +0800 Subject: [PATCH] fix indexator --- src/EcsGroup.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/EcsGroup.cs b/src/EcsGroup.cs index fcaafc9..ab5815d 100644 --- a/src/EcsGroup.cs +++ b/src/EcsGroup.cs @@ -152,7 +152,7 @@ namespace DCFApixels.DragonECS #if (DEBUG && !DISABLE_DEBUG) || ENABLE_DRAGONECS_ASSERT_CHEKS if (index < 0 || index >= Count) ThrowArgumentOutOfRange(); #endif - return _dense[index]; + return _dense[++index]; } } #endregion