From 91480716a5100462805ef8f5f7f85321c24e7204 Mon Sep 17 00:00:00 2001
From: Mikhail <99481254+DCFApixels@users.noreply.github.com>
Date: Fri, 23 Aug 2024 23:00:40 +0800
Subject: [PATCH 1/2] fix slice group
---
src/Collections/EcsGroup.cs | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/src/Collections/EcsGroup.cs b/src/Collections/EcsGroup.cs
index 9f8690a..610dced 100644
--- a/src/Collections/EcsGroup.cs
+++ b/src/Collections/EcsGroup.cs
@@ -372,16 +372,15 @@ namespace DCFApixels.DragonECS
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public EcsSpan Slice(int start)
{
- return Slice(start, _count - start + 1);
+ return Slice(start, _count - start);
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public EcsSpan Slice(int start, int length)
{
- start++;
#if (DEBUG && !DISABLE_DEBUG) || ENABLE_DRAGONECS_ASSERT_CHEKS
- if (start < 1 || start + length > _count) { Throw.ArgumentOutOfRange(); }
+ if (start < 0 || start + length > _count) { Throw.ArgumentOutOfRange(); }
#endif
- return new EcsSpan(WorldID, _dense, start, length);
+ return new EcsSpan(WorldID, _dense, start + 1, length);
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public EcsSpan ToSpan()
From 1a844290ba18b469e345e909e8ea886c8470d9cd Mon Sep 17 00:00:00 2001
From: Mikhail <99481254+DCFApixels@users.noreply.github.com>
Date: Fri, 23 Aug 2024 23:01:28 +0800
Subject: [PATCH 2/2] up version to 0.8.42
---
DragonECS.csproj | 2 +-
package.json | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/DragonECS.csproj b/DragonECS.csproj
index 55f91c7..2722d48 100644
--- a/DragonECS.csproj
+++ b/DragonECS.csproj
@@ -10,7 +10,7 @@