1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-10 12:32:20 +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

@ -138,7 +138,19 @@ static class HashCode
public static int Generate<T>(T value)
{
return HashHelper<T>.Get(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)