aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/deco.c
diff options
context:
space:
mode:
authorGravatar Tim Segers <tsegers@pm.me>2022-10-14 17:46:07 +0200
committerGravatar Tim Segers <tsegers@pm.me>2022-10-14 17:46:07 +0200
commit06e9e0d0df237e3d505d908ccf264091b440e066 (patch)
tree05dcf1ccbb4eea725b220e57e2a7f55408e21cc7 /src/deco.c
parent9ec5076b0f891b1dea64d165e622841ef4dfb1c0 (diff)
downloadopendeco-06e9e0d0df237e3d505d908ccf264091b440e066.tar.gz
Add requirement that GF Low not be greater than GF High
Diffstat (limited to 'src/deco.c')
-rw-r--r--src/deco.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/deco.c b/src/deco.c
index 80853b8..29f07ea 100644
--- a/src/deco.c
+++ b/src/deco.c
@@ -293,6 +293,8 @@ void init_tissues(decostate_t *ds)
void init_decostate(decostate_t *ds, const unsigned char gflo, const unsigned char gfhi, const double ceil_multiple)
{
+ assert(gflo <= gfhi);
+
init_tissues(ds);
ds->gflo = gflo;