SCI32: Fix deleting save games in native save/load dialogue

This commit is contained in:
Colin Snover 2016-10-02 19:23:19 -05:00
parent 5cca33702d
commit ac95f2595b

View file

@ -1350,7 +1350,7 @@ reg_t kMakeSaveFileName(EngineState *s, int argc, reg_t *argv) {
SciArray &outFileName = *s->_segMan->lookupArray(argv[0]);
// argv[1] is the game name, which is not used by ScummVM
const int16 saveNo = argv[2].toSint16();
outFileName.fromString(g_sci->getSavegameName(saveNo));
outFileName.fromString(g_sci->getSavegameName(saveNo + kSaveIdShift));
return argv[0];
}