FULLPIPE: Fix ModalSaveGame::setup()

This commit is contained in:
Eugene Sandulenko 2014-04-29 08:14:43 +03:00
parent c81099d390
commit 3687987291
2 changed files with 4 additions and 4 deletions

View File

@ -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;

View File

@ -31,7 +31,7 @@ class Sound;
struct FileInfo {
char filename[260];
int fi_104;
bool empty;
int day;
int month;
int year;