mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-26 03:37:53 +00:00
Avoid crash in Engine_SCUMM_create when an inconsistent platform override is present
svn-id: r25966
This commit is contained in:
parent
b25c7933a5
commit
5f295016dd
@ -1602,6 +1602,12 @@ PluginError Engine_SCUMM_create(OSystem *syst, Engine **engine) {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// If we narrowed it down too much, abort
|
||||
if (results.empty()) {
|
||||
warning("Engine_SCUMM_create: Game data inconsistent with platform override");
|
||||
return kNoGameDataFoundError;
|
||||
}
|
||||
|
||||
// Still no unique match found -> we just use the first one
|
||||
if (results.size() > 1) {
|
||||
|
Loading…
Reference in New Issue
Block a user