aboutsummaryrefslogtreecommitdiff
path: root/src/SBaseFileTable.cpp
diff options
context:
space:
mode:
authorLadislav Zezula <zezula@volny.cz>2023-11-13 10:35:13 +0100
committerLadislav Zezula <zezula@volny.cz>2023-11-13 10:35:13 +0100
commit5d938c500a6c37b97c80d7cb3f7435114090e291 (patch)
tree8c4932ebb113cda8001381c00c36a9f91276dc2b /src/SBaseFileTable.cpp
parentbf6a10b5e54c541ba5b17562ab139e58eac6393c (diff)
Tabs -> Spaces
Diffstat (limited to 'src/SBaseFileTable.cpp')
-rw-r--r--src/SBaseFileTable.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/SBaseFileTable.cpp b/src/SBaseFileTable.cpp
index befe40f..a53d6a6 100644
--- a/src/SBaseFileTable.cpp
+++ b/src/SBaseFileTable.cpp
@@ -2800,17 +2800,17 @@ DWORD DefragmentFileTable(TMPQArchive * ha)
{
TMPQHash * pHashTableEnd = ha->pHashTable + ha->pHeader->dwHashTableSize;
TMPQHash * pHash;
- DWORD dwNewBlockIndex;
+ DWORD dwNewBlockIndex;
for(pHash = ha->pHashTable; pHash < pHashTableEnd; pHash++)
{
if(MPQ_BLOCK_INDEX(pHash) < ha->dwFileTableSize)
- {
- // If that block entry is there, set it to the hash entry
- // If not, set it as DELETED
- dwNewBlockIndex = DefragmentTable[MPQ_BLOCK_INDEX(pHash)];
- pHash->dwBlockIndex = (dwNewBlockIndex != HASH_ENTRY_FREE) ? dwNewBlockIndex : HASH_ENTRY_DELETED;
- }
+ {
+ // If that block entry is there, set it to the hash entry
+ // If not, set it as DELETED
+ dwNewBlockIndex = DefragmentTable[MPQ_BLOCK_INDEX(pHash)];
+ pHash->dwBlockIndex = (dwNewBlockIndex != HASH_ENTRY_FREE) ? dwNewBlockIndex : HASH_ENTRY_DELETED;
+ }
}
}
}