STscript: don't parse boolean operands as 0 for strings containing just spaces

161fc7f0f091395f7ec34a9ace91596651363ad5

Cohee <18619528+Cohee1207@users.noreply.github.com>

1 files changed, +2 -1Showing whitespace changes
public/scripts/variables.js+2 -1
@@ -514,7 +514,8 @@ export function parseBooleanOperands(args) {
514514 return '';
515515 }
516516
517- const operandNumber = Number(operand);
517+ // parseFloat will return NaN for spaces.
518+ const operandNumber = parseFloat(operand);
518519
519520 if (!isNaN(operandNumber)) {
520521 return operandNumber;