mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 12:32:20 +02:00
Fixed undef const crash
This commit is contained in:
parent
008f37cdba
commit
a48f6b43c1
1 changed files with 1 additions and 1 deletions
|
@ -2485,7 +2485,7 @@ void BfAutoComplete::CheckLocalRef(BfAstNode* identifierNode, BfLocalVariable* v
|
|||
if (IsAutocompleteNode(identifierNode))
|
||||
{
|
||||
String constStr;
|
||||
if (varDecl->mConstValue)
|
||||
if (varDecl->mConstValue.IsConst())
|
||||
constStr = ConstantToString(mModule->mBfIRBuilder, varDecl->mConstValue);
|
||||
if (!constStr.IsEmpty())
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue