mirror of
https://github.com/DCFApixels/DragonECS-Graphs.git
synced 2025-09-18 03:34:35 +08:00
fix
This commit is contained in:
parent
c9f7826a67
commit
47874c3e7c
@ -71,15 +71,14 @@ namespace DCFApixels.DragonECS.Graphs.Internal
|
|||||||
{
|
{
|
||||||
unchecked
|
unchecked
|
||||||
{
|
{
|
||||||
long key = KeyUtility.FromXY(x, y);
|
|
||||||
#if DEBUG
|
#if DEBUG
|
||||||
if (FindEntry(key) >= 0)
|
if (FindEntry(x, y) >= 0)
|
||||||
{
|
{
|
||||||
Throw.ArgumentException("Has(x, y) is true");
|
Throw.ArgumentException("Has(x, y) is true");
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
int hash = IntHash.hashes[y] ^ x;
|
int hash = IntHash.hashes[y] ^ x;
|
||||||
AddInternal(key, hash, value);
|
AddInternal(KeyUtility.FromXY(x, y), hash, value);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||||
|
Loading…
Reference in New Issue
Block a user