aboutsummaryrefslogtreecommitdiff
path: root/src/SFileReadFile.cpp
diff options
context:
space:
mode:
authorLadislav Zezula <zezula@volny.cz>2025-04-20 21:16:05 +0200
committerLadislav Zezula <zezula@volny.cz>2025-04-20 21:16:05 +0200
commit4f4e2154cd9bb788186e4985104b58c4a5ee3d72 (patch)
treef8eebfa6f61d6786741a9a725bad21e94806f8ba /src/SFileReadFile.cpp
parentda046e71d9cfdfc0e143b6be0e496fddb9c6bab9 (diff)
Added check for loading CRC table
Diffstat (limited to 'src/SFileReadFile.cpp')
-rw-r--r--src/SFileReadFile.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/SFileReadFile.cpp b/src/SFileReadFile.cpp
index 180d428..1e990aa 100644
--- a/src/SFileReadFile.cpp
+++ b/src/SFileReadFile.cpp
@@ -73,8 +73,8 @@ static DWORD ReadMpqSectors(TMPQFile * hf, LPBYTE pbBuffer, DWORD dwByteOffset,
// or not, we won't try that again for the given file.
//
- AllocateSectorChecksums(hf, true);
- hf->bLoadedSectorCRCs = true;
+ if(AllocateSectorChecksums(hf, true) == ERROR_SUCCESS)
+ hf->bLoadedSectorCRCs = true;
}
// TODO: If the raw data MD5s are not loaded yet, load them now