From 12173bbc77b233997afcc96dede9b292babc7911 Mon Sep 17 00:00:00 2001 From: quou Date: Sun, 5 Jan 2025 17:56:45 +1100 Subject: fix fill_prop_number --- cfg/cfgparse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cfg/cfgparse.c b/cfg/cfgparse.c index 9ac8ec7..b149805 100644 --- a/cfg/cfgparse.c +++ b/cfg/cfgparse.c @@ -81,7 +81,7 @@ static void fill_prop_number( is_f = 1; if (is_f) { p->type = cfg_type_float; - p->as.num = (float)strtod(start, 0); + p->as.flt = (float)strtod(start, 0); } else { p->type = cfg_type_int; p->as.num = (int)strtol(start, 0, 10); -- cgit v1.2.3-54-g00ecf