mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-23 04:42:32 +00:00
update the scope of local defs to the parent scope when the creation scope
goes away (doesn't get updated to the global scope). fixes a bug where local defs would be miscounted (and sometimes lost)
This commit is contained in:
parent
0b61dae402
commit
332ec82495
1 changed files with 1 additions and 0 deletions
|
@ -695,6 +695,7 @@ statement_block
|
||||||
current_scope->num_defs += num_defs;
|
current_scope->num_defs += num_defs;
|
||||||
*current_scope->tail = defs;
|
*current_scope->tail = defs;
|
||||||
while (*current_scope->tail) {
|
while (*current_scope->tail) {
|
||||||
|
(*current_scope->tail)->scope = current_scope;
|
||||||
current_scope->tail = &(*current_scope->tail)->def_next;
|
current_scope->tail = &(*current_scope->tail)->def_next;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue