mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-03-21 18:01:15 +00:00
Initialize current_symtab in class_init() when necessary.
If an objective-qc symbol is the first token to be read, class_init() is called before the parser gets a chance to perform the initialization action. However, class_init() setting current_symtab if the first objective-qc symbol is seen in a function body would be bad.
This commit is contained in:
parent
c01f742b7b
commit
da14c95bb8
1 changed files with 2 additions and 0 deletions
|
@ -277,6 +277,8 @@ class_init (void)
|
|||
{
|
||||
symbol_t *sym;
|
||||
|
||||
if (!current_symtab)
|
||||
current_symtab = pr.symtab;
|
||||
init_classes ();
|
||||
init_objective_structs ();
|
||||
|
||||
|
|
Loading…
Reference in a new issue