mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-24 21:11:39 +00:00
- fixed crash when defining a global constant which references a class member constant in its value.
This commit is contained in:
parent
12ad7ee933
commit
eade38fb09
1 changed files with 1 additions and 1 deletions
|
@ -202,7 +202,7 @@ FxLocalVariableDeclaration *FCompileContext::FindLocalVariable(FName name)
|
|||
|
||||
static PContainerType *FindContainerType(FName name, FCompileContext &ctx)
|
||||
{
|
||||
auto sym = ctx.Class->Symbols.FindSymbol(name, true);
|
||||
auto sym = ctx.Class != nullptr? ctx.Class->Symbols.FindSymbol(name, true) : nullptr;
|
||||
if (sym == nullptr) sym = ctx.CurGlobals->Symbols.FindSymbol(name, true);
|
||||
if (sym && sym->IsKindOf(RUNTIME_CLASS(PSymbolType)))
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue