diff --git a/source/funkin/options/OptionsMenu.hx b/source/funkin/options/OptionsMenu.hx index 7b4e3cde8d..fd399b4230 100644 --- a/source/funkin/options/OptionsMenu.hx +++ b/source/funkin/options/OptionsMenu.hx @@ -202,7 +202,7 @@ class OptionsMenu extends TreeMenu { Logs.warn("A radio option requires an \"id\" for option saving."); continue; } - var v:Dynamic = Std.parseFloat(node.att.value); + var v:Dynamic = Std.string(Std.parseFloat(node.att.value)) == "nan" ? node.att.value : Std.parseFloat(node.att.value); options.push(new RadioButton(screen, name, desc, node.att.id, v != null ? v : node.att.value, null, FlxG.save.data, node.has.forId ? node.att.forId : null)); case 'slider': if (!node.has.id) { @@ -223,4 +223,4 @@ class OptionsMenu extends TreeMenu { return options; } -} \ No newline at end of file +}