summaryrefslogtreecommitdiffstats
path: root/src/save/PCSave.cpp
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2020-05-28 10:25:14 +0200
committerGitHub <noreply@github.com>2020-05-28 10:25:14 +0200
commit9bcec542911c461d60dd80772b97f30399f3c818 (patch)
treeeb2d5037c4ec34298b06f99f36f1a29f01aec77c /src/save/PCSave.cpp
parentcrash fix (diff)
parentMerge remote-tracking branch 'upstream/master' (diff)
downloadre3-9bcec542911c461d60dd80772b97f30399f3c818.tar
re3-9bcec542911c461d60dd80772b97f30399f3c818.tar.gz
re3-9bcec542911c461d60dd80772b97f30399f3c818.tar.bz2
re3-9bcec542911c461d60dd80772b97f30399f3c818.tar.lz
re3-9bcec542911c461d60dd80772b97f30399f3c818.tar.xz
re3-9bcec542911c461d60dd80772b97f30399f3c818.tar.zst
re3-9bcec542911c461d60dd80772b97f30399f3c818.zip
Diffstat (limited to 'src/save/PCSave.cpp')
-rw-r--r--src/save/PCSave.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/save/PCSave.cpp b/src/save/PCSave.cpp
index 3dc80f73..3103c7ab 100644
--- a/src/save/PCSave.cpp
+++ b/src/save/PCSave.cpp
@@ -41,7 +41,10 @@ C_PcSave::SaveSlot(int32 slot)
_psGetUserFilesFolder();
int file = CFileMgr::OpenFile(ValidSaveName, "wb");
if (file != 0) {
- DoGameSpecificStuffBeforeSave();
+#ifdef MISSION_REPLAY
+ if (!IsQuickSave)
+#endif
+ DoGameSpecificStuffBeforeSave();
if (GenericSave(file)) {
if (!!CFileMgr::CloseFile(file))
nErrorCode = SAVESTATUS_ERR_SAVE_CLOSE;