This commit is contained in:
DCFApixels 2024-11-19 21:09:30 +08:00
parent c9f7826a67
commit 47874c3e7c

View File

@ -71,15 +71,14 @@ namespace DCFApixels.DragonECS.Graphs.Internal
{
unchecked
{
long key = KeyUtility.FromXY(x, y);
#if DEBUG
if (FindEntry(key) >= 0)
if (FindEntry(x, y) >= 0)
{
Throw.ArgumentException("Has(x, y) is true");
}
#endif
int hash = IntHash.hashes[y] ^ x;
AddInternal(key, hash, value);
AddInternal(KeyUtility.FromXY(x, y), hash, value);
}
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]