summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2020-01-31 13:33:46 +0100
committerSergeanur <s.anureev@yandex.ua>2020-01-31 13:33:46 +0100
commit7df91ca2f91cc324d07ab6b230e5408742dea2f7 (patch)
tree8cc916845045cca9edf2f933589b4c568b2ca516 /src
parentMerge pull request #299 from Sergeanur/PedIK (diff)
downloadre3-7df91ca2f91cc324d07ab6b230e5408742dea2f7.tar
re3-7df91ca2f91cc324d07ab6b230e5408742dea2f7.tar.gz
re3-7df91ca2f91cc324d07ab6b230e5408742dea2f7.tar.bz2
re3-7df91ca2f91cc324d07ab6b230e5408742dea2f7.tar.lz
re3-7df91ca2f91cc324d07ab6b230e5408742dea2f7.tar.xz
re3-7df91ca2f91cc324d07ab6b230e5408742dea2f7.tar.zst
re3-7df91ca2f91cc324d07ab6b230e5408742dea2f7.zip
Diffstat (limited to 'src')
-rw-r--r--src/save/GenericGameStorage.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/save/GenericGameStorage.cpp b/src/save/GenericGameStorage.cpp
index 52733b67..8d3137f1 100644
--- a/src/save/GenericGameStorage.cpp
+++ b/src/save/GenericGameStorage.cpp
@@ -153,13 +153,13 @@ CheckDataNotCorrupt(int32 slot, char *name)
int32 blocknum = 0;
eLevelName level = LEVEL_NONE;
CheckSum = 0;
- uint32 bytes_pocessed = 0;
+ uint32 bytes_processed = 0;
sprintf(filename, "%s%i%s", DefaultPCSaveFileName, slot + 1, ".b");
int file = CFileMgr::OpenFile(filename, "rb");
if (file == 0)
return false;
strcpy(name, filename);
- while (SIZE_OF_ONE_GAME_IN_BYTES - sizeof(uint32) - bytes_pocessed > 0 && blocknum < 40) {
+ while (SIZE_OF_ONE_GAME_IN_BYTES - sizeof(uint32) > bytes_processed && blocknum < 40) {
int32 blocksize;
if (!ReadDataFromFile(file, (uint8*)&blocksize, sizeof(blocksize))) {
CloseFile(file);
@@ -179,7 +179,7 @@ CheckDataNotCorrupt(int32 slot, char *name)
uint8 *_work_buf = work_buff;
for (int i = 0; i < align4bytes(blocksize); i++) {
CheckSum += *_work_buf++;
- bytes_pocessed++;
+ bytes_processed++;
}
if (blocknum == 0)