diff options
author | Ladislav Zezula <E:\Ladik\Mail> | 2015-11-07 23:04:44 +0100 |
---|---|---|
committer | Ladislav Zezula <E:\Ladik\Mail> | 2015-11-07 23:04:44 +0100 |
commit | dae6c5e315445b0c25d6a500deb7e7e625d8df90 (patch) | |
tree | ea2c745ca2633a13fb859277ec73dc690a2565e4 /src/SFileFindFile.cpp | |
parent | 18dda26660660e7ceaf18524e3d5e3d611df8f20 (diff) |
+ Hashing function no longer replaces slashes for backslashes (storm.dll v 2002 doesn't do that either)
+ Support for names beginning with slashes, like \/\BTNThoriumAmmunition.blp
Diffstat (limited to 'src/SFileFindFile.cpp')
-rw-r--r-- | src/SFileFindFile.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/SFileFindFile.cpp b/src/SFileFindFile.cpp index aacba12..41f31e1 100644 --- a/src/SFileFindFile.cpp +++ b/src/SFileFindFile.cpp @@ -138,7 +138,7 @@ static bool FileWasFoundBefore( }
// Calculate the hash to the table
- dwNameHash = HashString(szRealFileName, MPQ_HASH_NAME_A);
+ dwNameHash = ha->pfnHashString(szRealFileName, MPQ_HASH_NAME_A);
dwStartIndex = dwIndex = (dwNameHash % hs->dwSearchTableItems);
// The file might have been found before
|