aboutsummaryrefslogtreecommitdiff
path: root/src/SFileOpenFileEx.cpp
diff options
context:
space:
mode:
authorLadislav Zezula <zezula-at-volny-dot-cz>2016-07-11 22:52:11 +0200
committerLadislav Zezula <zezula-at-volny-dot-cz>2016-07-11 22:52:11 +0200
commit7597fe1702e4f27faf51d201b566139e17ad4342 (patch)
treec9b2964caea4864b43df957995615c63ead26aa3 /src/SFileOpenFileEx.cpp
parent66a127ec50927e09662573dde3c313d3a2836d6b (diff)
+ Yet another protector solved
Diffstat (limited to 'src/SFileOpenFileEx.cpp')
-rw-r--r--src/SFileOpenFileEx.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/SFileOpenFileEx.cpp b/src/SFileOpenFileEx.cpp
index afbfc78..9ce0ae2 100644
--- a/src/SFileOpenFileEx.cpp
+++ b/src/SFileOpenFileEx.cpp
@@ -30,7 +30,7 @@ static DWORD FindHashIndex(TMPQArchive * ha, DWORD dwFileIndex)
pHashTableEnd = ha->pHashTable + ha->pHeader->dwHashTableSize;
for(pHash = ha->pHashTable; pHash < pHashTableEnd; pHash++)
{
- if(pHash->dwBlockIndex == dwFileIndex)
+ if(MPQ_BLOCK_INDEX(pHash) == dwFileIndex)
{
// Duplicate hash entry found
if(dwFirstIndex != HASH_ENTRY_FREE)