Config: Properly clamp rgssVersion to allowed range
This commit is contained in:
parent
3da785b293
commit
1a98760b31
|
@ -226,6 +226,8 @@ void Config::read(int argc, char *argv[])
|
||||||
#undef PO_DESC
|
#undef PO_DESC
|
||||||
#undef PO_DESC_ALL
|
#undef PO_DESC_ALL
|
||||||
|
|
||||||
|
rgssVersion = clamp(rgssVersion, 0, 3);
|
||||||
|
|
||||||
SE.sourceCount = clamp(SE.sourceCount, 1, 64);
|
SE.sourceCount = clamp(SE.sourceCount, 1, 64);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue