[tfman] proper structure paths #2457

This commit is contained in:
nick black 2021-12-14 18:14:42 -05:00
parent 83976af4b4
commit 6685815c7f
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

View File

@ -111,6 +111,8 @@ int docstructure_add(docstructure* ds, const char* title, int line,
if((addpath[z] = ds->curpath[z]) == UINT_MAX){
ds->curpath[z] = 0;
addpath[z] = 0;
}else if(z == level){
addpath[z] = ++ds->curpath[z];
}
++z;
}