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) {
514 return '';514 return '';
515 }515 }
516516
517 const operandNumber = Number(operand);517 // parseFloat will return NaN for spaces.
518 const operandNumber = parseFloat(operand);
518519
519 if (!isNaN(operandNumber)) {520 if (!isNaN(operandNumber)) {
520 return operandNumber;521 return operandNumber;