From 7a6dc93bdb5b856c42cea5df0e3b8d3708950907 Mon Sep 17 00:00:00 2001 From: Mikhail <99481254+DCFApixels@users.noreply.github.com> Date: Sun, 24 Dec 2023 17:09:01 +0800 Subject: [PATCH] Update EcsGroup.cs --- src/Collections/EcsGroup.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Collections/EcsGroup.cs b/src/Collections/EcsGroup.cs index 9c4619f..463ccff 100644 --- a/src/Collections/EcsGroup.cs +++ b/src/Collections/EcsGroup.cs @@ -349,7 +349,7 @@ namespace DCFApixels.DragonECS public void UnionWith(EcsSpan span) { #if (DEBUG && !DISABLE_DEBUG) || ENABLE_DRAGONECS_ASSERT_CHEKS - if (_source != span.World) Throw.Group_ArgumentDifferentWorldsException(); + if (_source.id != span.WorldID) Throw.Group_ArgumentDifferentWorldsException(); #endif foreach (var item in span) { @@ -385,7 +385,7 @@ namespace DCFApixels.DragonECS public void ExceptWith(EcsSpan span) { #if (DEBUG && !DISABLE_DEBUG) || ENABLE_DRAGONECS_ASSERT_CHEKS - if (_source != span.World) Throw.Group_ArgumentDifferentWorldsException(); + if (_source.id != span.WorldID) Throw.Group_ArgumentDifferentWorldsException(); #endif foreach (var item in span) { @@ -458,7 +458,7 @@ namespace DCFApixels.DragonECS public bool SetEquals(EcsSpan span) { #if (DEBUG && !DISABLE_DEBUG) || ENABLE_DRAGONECS_ASSERT_CHEKS - if (_source != span.World) Throw.Group_ArgumentDifferentWorldsException(); + if (_source.id != span.WorldID) Throw.Group_ArgumentDifferentWorldsException(); #endif if (span.Length != Count) return false; @@ -494,7 +494,7 @@ namespace DCFApixels.DragonECS public bool Overlaps(EcsSpan span) { #if (DEBUG && !DISABLE_DEBUG) || ENABLE_DRAGONECS_ASSERT_CHEKS - if (_source != span.World) Throw.Group_ArgumentDifferentWorldsException(); + if (_source.id != span.WorldID) Throw.Group_ArgumentDifferentWorldsException(); #endif foreach (var item in span) if (Has(item))