mirror of
https://forgejo.xatacraft.ru/Sunshine/mkxp-sunshine.git
synced 2026-08-19 21:39:57 +00:00
Config: Properly clamp rgssVersion to allowed range
This commit is contained in:
parent
3da785b293
commit
1a98760b31
1 changed files with 2 additions and 0 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue