mirror of
https://github.com/scummvm/scummvm.git
synced 2026-06-20 05:45:29 +00:00
MYST3: Fix crash when trying to load an empty slot from the launcher
This commit is contained in:
@@ -235,6 +235,11 @@ public:
|
||||
virtual SaveStateDescriptor querySaveMetaInfos(const char *target, int slot) const {
|
||||
SaveStateDescriptor saveInfos = getSaveDescription(target, slot);
|
||||
|
||||
if (saveInfos.getDescription().empty()) {
|
||||
// Unused slot
|
||||
return SaveStateDescriptor();
|
||||
}
|
||||
|
||||
// Open save
|
||||
Common::InSaveFile *saveFile = g_system->getSavefileManager()->openForLoading(saveInfos.getDescription());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user