mirror of
https://mirror.ghproxy.com/https://github.com/dexyfex/CodeWalker
synced 2026-05-14 18:04:50 +08:00
Add null checks for name hashing to help avoid crashes for some resources
This commit is contained in:
@@ -57,6 +57,7 @@ namespace CodeWalker.GameFiles
|
||||
|
||||
public static uint GenHash(string text)
|
||||
{
|
||||
if (text == null) return 0;
|
||||
uint h = 0;
|
||||
for (int i = 0; i < text.Length; i++)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user