Fixed an issue with the ref counter in uxnasm

This commit is contained in:
neauoire 2021-10-17 19:10:29 -07:00
parent 99e38d560c
commit 04e4edf05f
1 changed files with 4 additions and 3 deletions

View File

@ -191,8 +191,9 @@ addref(Label *l, Uint8 rel)
if(rel) {
int pos = cpos(l->name, '/');
if(pos != -1) {
char root[64];
Label *rl = findlabel(scpy(l->name, root, pos));
char parent[64];
Label *rl = findlabel(scpy(l->name, parent, pos));
if(rl)
++rl->refs;
}
}