diff --git a/BeefLibs/corlib/src/HashCode.bf b/BeefLibs/corlib/src/HashCode.bf index 31511bff..c90ed23a 100644 --- a/BeefLibs/corlib/src/HashCode.bf +++ b/BeefLibs/corlib/src/HashCode.bf @@ -138,7 +138,19 @@ static class HashCode public static int Generate(T value) { - return HashHelper.Get(value); + if (Compiler.IsBuilding) + { + return HashHelper.Get(value); + } + else + { + [IgnoreErrors(true)] + { + return HashHelper.Get(value); + } + #unwarn + return 0; + } } static int Get(void* ptr, int size)