Avoid crash in Engine_SCUMM_create when an inconsistent platform override is present

svn-id: r25966
This commit is contained in:
Max Horn 2007-03-04 09:41:58 +00:00
parent b25c7933a5
commit 5f295016dd

View File

@ -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) {