From 915e32147a705c76eef285ad5c15b93f0357a757 Mon Sep 17 00:00:00 2001 From: cinnaboot Date: Sun, 11 Jan 2026 08:13:31 -0500 Subject: [PATCH] only verify integer type for parent index --- src/config_loader.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/config_loader.cpp b/src/config_loader.cpp index 3ce8930..415a27e 100644 --- a/src/config_loader.cpp +++ b/src/config_loader.cpp @@ -55,9 +55,8 @@ static bool parse_toml_body(toml_datum_t body_table, CelestialBody* body) { toml_datum_t eccentricity = toml_get(body_table, "eccentricity"); toml_datum_t semi_major = toml_get(body_table, "semi_major_axis"); - // Accept both INT64 and FP64 for parent_index (TOML may parse integers as floats) if (mass.type != TOML_FP64 || radius.type != TOML_FP64 || - (parent_idx.type != TOML_INT64 && parent_idx.type != TOML_FP64) || + parent_idx.type != TOML_INT64 || eccentricity.type != TOML_FP64 || semi_major.type != TOML_FP64) { return false;