1
0
Fork 0
mirror of https://github.com/KingDuckZ/kamokan.git synced 2024-12-27 21:35:41 +00:00

Make empty string count as false.

This commit is contained in:
King_DuckZ 2017-06-15 00:05:27 +01:00
parent 2a5b6277a4
commit c34b7ba11d

View file

@ -24,7 +24,7 @@ namespace kamokan {
if (parStr == "true" or parStr == "yes" or parStr == "1" or parStr == "on") {
return true;
}
else if (parStr == "false" or parStr == "no" or parStr == "0" or parStr == "off") {
else if (parStr == "" or parStr == "false" or parStr == "no" or parStr == "0" or parStr == "off") {
return false;
}
else {