From d0b187a313cb11d42522f91e6884af07c40c04a4 Mon Sep 17 00:00:00 2001 From: Brian Fiete Date: Fri, 26 Jan 2024 06:08:39 -0500 Subject: [PATCH] Hashcode error fix(hack) --- BeefLibs/corlib/src/HashCode.bf | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) 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)