aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/fullpipe/modal.cpp6
-rw-r--r--engines/fullpipe/modal.h2
2 files changed, 4 insertions, 4 deletions
diff --git a/engines/fullpipe/modal.cpp b/engines/fullpipe/modal.cpp
index 906e4e6896..bba5df0cd5 100644
--- a/engines/fullpipe/modal.cpp
+++ b/engines/fullpipe/modal.cpp
@@ -1584,17 +1584,17 @@ void ModalSaveGame::setup(Scene *sc, int mode) {
int x = _bgr->_ox + _bgr->getDimensions(&point)->x / 2;
int y = _bgr->_oy + 90;
- bool flag = false;
int w;
FileInfo *fileinfo;
for (int i = 0; i < 7; i++) {
fileinfo = new FileInfo;
+ memset(fileinfo, 0, sizeof(FileInfo));
snprintf(fileinfo->filename, 160, "save%02d.sav", i);
- if (!getFileInfo(fileinfo->filename, fileinfo) || flag) {
- flag = true;
+ if (!getFileInfo(fileinfo->filename, fileinfo)) {
+ fileinfo->empty = true;
w = _emptyD->getDimensions(&point)->x;
} else {
w = 0;
diff --git a/engines/fullpipe/modal.h b/engines/fullpipe/modal.h
index aced31573b..a214b1c639 100644
--- a/engines/fullpipe/modal.h
+++ b/engines/fullpipe/modal.h
@@ -31,7 +31,7 @@ class Sound;
struct FileInfo {
char filename[260];
- int fi_104;
+ bool empty;
int day;
int month;
int year;