summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2020-02-01 22:01:25 +0100
committerSergeanur <s.anureev@yandex.ua>2020-02-01 22:01:25 +0100
commitc8f7732832b26a453c84bf3c63ec898ca7a5cc2c (patch)
treed1dab845378ebf37621680e6cbf4b280cb25c918 /src
parentFix HAS_OBJECT_BEEN_DAMAGED (diff)
downloadre3-c8f7732832b26a453c84bf3c63ec898ca7a5cc2c.tar
re3-c8f7732832b26a453c84bf3c63ec898ca7a5cc2c.tar.gz
re3-c8f7732832b26a453c84bf3c63ec898ca7a5cc2c.tar.bz2
re3-c8f7732832b26a453c84bf3c63ec898ca7a5cc2c.tar.lz
re3-c8f7732832b26a453c84bf3c63ec898ca7a5cc2c.tar.xz
re3-c8f7732832b26a453c84bf3c63ec898ca7a5cc2c.tar.zst
re3-c8f7732832b26a453c84bf3c63ec898ca7a5cc2c.zip
Diffstat (limited to '')
-rw-r--r--src/control/Replay.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/control/Replay.cpp b/src/control/Replay.cpp
index ea305778..f36ef932 100644
--- a/src/control/Replay.cpp
+++ b/src/control/Replay.cpp
@@ -1366,7 +1366,11 @@ void CReplay::SaveReplayToHD(void)
{
CFileMgr::SetDirMyDocuments();
int fw = CFileMgr::OpenFileForWriting("replay.rep");
- if (fw < 0){
+#ifdef FIX_BUGS
+ if (fw == 0) {
+#else
+ if (fw < 0){ // BUG?
+#endif
debug("Couldn't open replay.rep for writing");
CFileMgr::SetDir("");
return;
@@ -1397,7 +1401,7 @@ void PlayReplayFromHD(void)
{
CFileMgr::SetDirMyDocuments();
int fr = CFileMgr::OpenFile("replay.rep", "rb");
- if (fr < 0) {
+ if (fr == 0) {
debug("Couldn't open replay.rep for reading");
/* Forgot to SetDir? */
return;