mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-12 07:34:50 +00:00
Set node type when nil-ing an id node.
- Nodes can't stay as type AST_ExprID if they don't also have the operation PEX_ID.
This commit is contained in:
parent
850055a766
commit
76d2e8cfc4
1 changed files with 1 additions and 0 deletions
|
@ -352,6 +352,7 @@ ZCC_Expression *ZCCCompiler::IdentifyIdentifier(ZCC_ExprID *idnode)
|
|||
// Identifier didn't refer to anything good, so type error it.
|
||||
idnode->Type = TypeError;
|
||||
idnode->Operation = PEX_Nil;
|
||||
idnode->NodeType = AST_Expression;
|
||||
return idnode;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue