1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-11 12:54:15 +02:00

Hashcode error fix(hack)

This commit is contained in:
Brian Fiete 2024-01-26 06:08:39 -05:00
parent 7c6a53e59f
commit d0b187a313

View file

@ -137,9 +137,21 @@ static class HashCode
}
public static int Generate<T>(T value)
{
if (Compiler.IsBuilding)
{
return HashHelper<T>.Get(value);
}
else
{
[IgnoreErrors(true)]
{
return HashHelper<T>.Get(value);
}
#unwarn
return 0;
}
}
static int Get(void* ptr, int size)
{