diff options
-rw-r--r-- | setup/configfile.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/setup/configfile.c b/setup/configfile.c index 6d57a107..99ec2e03 100644 --- a/setup/configfile.c +++ b/setup/configfile.c @@ -532,7 +532,15 @@ static void LoadDefaultCollection(default_collection_t *collection) intparm = ParseIntParameter(strparm); defaults[i].untranslated = intparm; - intparm = scantokey[intparm]; + + if (intparm >= 0 && intparm < 128) + { + intparm = scantokey[intparm]; + } + else + { + intparm = 0; + } defaults[i].original_translated = intparm; * (int *) def->location = intparm; |