OS: Windows 10
Setting window_limit to 0(by editing config.ini) will cause immediate crash.
Setting window_limit to below 4(like 1) will cause crash when trying to open any window(new game, config window, etc)
Same happens if you overflow it with >256 of course
Check for that and return to default value?