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:
parent
7c6a53e59f
commit
d0b187a313
1 changed files with 13 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue