fix indexator

This commit is contained in:
Mikhail 2023-06-12 12:49:41 +08:00
parent 2e4c40e494
commit 968c6deb41

View File

@ -152,7 +152,7 @@ namespace DCFApixels.DragonECS
#if (DEBUG && !DISABLE_DEBUG) || ENABLE_DRAGONECS_ASSERT_CHEKS #if (DEBUG && !DISABLE_DEBUG) || ENABLE_DRAGONECS_ASSERT_CHEKS
if (index < 0 || index >= Count) ThrowArgumentOutOfRange(); if (index < 0 || index >= Count) ThrowArgumentOutOfRange();
#endif #endif
return _dense[index]; return _dense[++index];
} }
} }
#endregion #endregion