mirror of
https://github.com/DCFApixels/DragonECS-Graphs.git
synced 2025-09-17 19:24:36 +08:00
fix
This commit is contained in:
parent
c9f7826a67
commit
47874c3e7c
@ -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)]
|
||||
|
Loading…
Reference in New Issue
Block a user