Config: Properly clamp rgssVersion to allowed range

This commit is contained in:
Jonas Kulla 2014-08-29 09:42:13 +02:00
parent 3da785b293
commit 1a98760b31
1 changed files with 2 additions and 0 deletions

View File

@ -226,6 +226,8 @@ void Config::read(int argc, char *argv[])
#undef PO_DESC
#undef PO_DESC_ALL
rgssVersion = clamp(rgssVersion, 0, 3);
SE.sourceCount = clamp(SE.sourceCount, 1, 64);
}