summaryrefslogtreecommitdiffstats
path: root/src/save/PCSave.cpp
diff options
context:
space:
mode:
authorwithmorten <morten.with@gmail.com>2021-06-30 16:23:44 +0200
committerwithmorten <morten.with@gmail.com>2021-06-30 16:23:44 +0200
commit3383d8c6e7a807b88a703b4e1261fb8ba48f0096 (patch)
tree26db7700ece26c47c7c43e52488f06f81dd994cc /src/save/PCSave.cpp
parentFix MP3 finding stack crash (diff)
downloadre3-3383d8c6e7a807b88a703b4e1261fb8ba48f0096.tar
re3-3383d8c6e7a807b88a703b4e1261fb8ba48f0096.tar.gz
re3-3383d8c6e7a807b88a703b4e1261fb8ba48f0096.tar.bz2
re3-3383d8c6e7a807b88a703b4e1261fb8ba48f0096.tar.lz
re3-3383d8c6e7a807b88a703b4e1261fb8ba48f0096.tar.xz
re3-3383d8c6e7a807b88a703b4e1261fb8ba48f0096.tar.zst
re3-3383d8c6e7a807b88a703b4e1261fb8ba48f0096.zip
Diffstat (limited to 'src/save/PCSave.cpp')
-rw-r--r--src/save/PCSave.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/save/PCSave.cpp b/src/save/PCSave.cpp
index d8ede0d3..a9df00af 100644
--- a/src/save/PCSave.cpp
+++ b/src/save/PCSave.cpp
@@ -25,7 +25,11 @@ C_PcSave::SetSaveDirectory(const char *path)
bool
C_PcSave::DeleteSlot(int32 slot)
{
+#ifdef FIX_BUGS
+ char FileName[MAX_PATH];
+#else
char FileName[200];
+#endif
PcSaveHelper.nErrorCode = SAVESTATUS_SUCCESSFUL;
sprintf(FileName, "%s%i.b", DefaultPCSaveFileName, slot + 1);