X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FCReplayData.cpp;h=747c601e5d01570df84e70135d21e8e2be718dc8;hb=6671923e966e5fb82eeac52be174fb6295dc9ee7;hp=51c1834fba1067bbe60e95161696313c5e052038;hpb=39f27126609c9c80dea1ab3d95240f4de6c240f9;p=quix0rs-blobwars.git diff --git a/src/CReplayData.cpp b/src/CReplayData.cpp index 51c1834..747c601 100644 --- a/src/CReplayData.cpp +++ b/src/CReplayData.cpp @@ -67,14 +67,14 @@ void ReplayData::setMode(REPLAY_MODE::TYPE replayMode) if (!fp) { printf("ERROR: Replay file '%s' could not be loaded.\n", filename); - replayMode = REPLAY_MODE::NONE; + this->replayMode = REPLAY_MODE::NONE; return; } if (fread(&header, sizeof(ReplayDataHeader), 1, fp) != 1) { printf("ERROR: Replay file '%s' is corrupt\n", filename); - replayMode = REPLAY_MODE::NONE; + this->replayMode = REPLAY_MODE::NONE; fclose(fp); return; } @@ -97,7 +97,7 @@ void ReplayData::setMode(REPLAY_MODE::TYPE replayMode) if (!fp) { printf("ERROR: Replay file '%s' could not be opened for writing.\n", filename); - replayMode = REPLAY_MODE::NONE; + this->replayMode = REPLAY_MODE::NONE; return; } @@ -107,7 +107,7 @@ void ReplayData::setMode(REPLAY_MODE::TYPE replayMode) if (size != 1) { printf("Error writing replay data header: %s\n", strerror(errno)); - replayMode = REPLAY_MODE::NONE; + this->replayMode = REPLAY_MODE::NONE; fclose(fp); fp = NULL; return;