aboutsummaryrefslogtreecommitdiff
path: root/engines/scumm
diff options
context:
space:
mode:
authorMax Horn2006-04-04 21:18:15 +0000
committerMax Horn2006-04-04 21:18:15 +0000
commit7ba17e0574652a3759e3c2fbe1430a880db33b48 (patch)
tree1f75ad672cb6ad9e7d16401fa2696bb692d91dd7 /engines/scumm
parent77555809b68d0bf30f5faecbd86458e3566a703e (diff)
downloadscummvm-rg350-7ba17e0574652a3759e3c2fbe1430a880db33b48.tar.gz
scummvm-rg350-7ba17e0574652a3759e3c2fbe1430a880db33b48.tar.bz2
scummvm-rg350-7ba17e0574652a3759e3c2fbe1430a880db33b48.zip
Paranoia change: catch invalid 'method' value in generateDetectName
svn-id: r21602
Diffstat (limited to 'engines/scumm')
-rw-r--r--engines/scumm/plugin.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/engines/scumm/plugin.cpp b/engines/scumm/plugin.cpp
index d799dc2650..1382ca5a79 100644
--- a/engines/scumm/plugin.cpp
+++ b/engines/scumm/plugin.cpp
@@ -1273,6 +1273,8 @@ static bool generateDetectName(const ScummGameSettings *g, int method, char *det
return false;
strcpy(detectName, "00.MAN");
break;
+ default:
+ return false;
}
return true;