Fixed an issue with the ref counter in uxnasm
This commit is contained in:
parent
99e38d560c
commit
04e4edf05f
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue