ASYLUM: fix crash after reaching limit of savegames

Bug no. 13144
This commit is contained in:
alxpnv 2021-12-06 13:25:14 +03:00
parent 28dc2e14bf
commit 7cccbafc9d

View file

@ -50,8 +50,8 @@ public:
return "Sanitarium (c) ASC Games";
}
int getMaximumSaveSlot() const override { return 25; }
int getAutosaveSlot() const override { return getMaximumSaveSlot() - 1; }
int getMaximumSaveSlot() const override { return 24; }
int getAutosaveSlot() const override { return getMaximumSaveSlot(); }
SaveStateDescriptor querySaveMetaInfos(const char *target, int slot) const override;
void getSavegameThumbnail(Graphics::Surface &thumb) override;
Common::Error createInstance(OSystem *syst, Engine **engine, const ADGameDescription *gd) const override;