Disallow GOL rulesets with no B states

This commit is contained in:
Tamás Bálint Misius 2021-07-15 21:05:24 +02:00
parent d040de396a
commit 5f90a80fe3
No known key found for this signature in database
GPG Key ID: 5B472A12F6ECA9F2

View File

@ -13,6 +13,10 @@ int ParseGOLString(const String &value)
{
begin |= 1U << (it[0] - '0');
}
if (!begin)
{
return -1;
}
// Must have a /S immediately afterwards
if (it < value.end() - 1 && it[0] == '/' && it[1] == 'S')