From 69d78fb945a758b281ea8d80e1da921ffd8d0357 Mon Sep 17 00:00:00 2001 From: nick black Date: Mon, 15 Feb 2021 06:03:36 -0500 Subject: [PATCH] nctree_focused() --- src/lib/tree.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/tree.c b/src/lib/tree.c index a593cf95e..4fd39d403 100644 --- a/src/lib/tree.c +++ b/src/lib/tree.c @@ -168,7 +168,7 @@ void* nctree_focused(nctree* n){ int idx = 0; const nctree_int_item* nii = &n->items; while(n->currentpath[idx] != UINT_MAX){ - assert(n->currentpath[idx] < nii->count); + assert(n->currentpath[idx] < nii->subcount); nii = &nii->subs[n->currentpath[idx]]; ++idx; }