aboutsummaryrefslogtreecommitdiff
path: root/src/SFileFindFile.cpp
diff options
context:
space:
mode:
authorLadislav Zezula <E:\Ladik\Mail>2015-11-07 23:04:44 +0100
committerLadislav Zezula <E:\Ladik\Mail>2015-11-07 23:04:44 +0100
commitdae6c5e315445b0c25d6a500deb7e7e625d8df90 (patch)
treeea2c745ca2633a13fb859277ec73dc690a2565e4 /src/SFileFindFile.cpp
parent18dda26660660e7ceaf18524e3d5e3d611df8f20 (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.cpp2
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