Skip to content

Commit 15d1664

Browse files
committed
Update APYaml.hx
1 parent 643031c commit 15d1664

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/archipelago/APYaml.hx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ class APYaml {
5555
sectionData.set(key, value.split(",").map(function(item) return item.trim()));
5656
} else if (value == "true" || value == "false") {
5757
sectionData.set(key, value == "true");
58-
} else if (cast(Std.parseFloat(value), Null<Float>) != null || Math.isNaN(Std.parseFloat(value))) {
58+
} else if (cast(Std.parseFloat(value), Null<Float>) != null || !Math.isNaN(Std.parseFloat(value))) {
5959
sectionData.set(key, Std.parseFloat(value));
6060
} else {
6161
sectionData.set(key, value);

0 commit comments

Comments
 (0)