mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-11 15:22:16 +00:00
- Fixed GCC compilation error.
It didn't like 'cvar' being declared between 'goto foundit' and the 'foundit' label.
This commit is contained in:
parent
1895feb185
commit
07c110d5f7
1 changed files with 1 additions and 2 deletions
|
@ -5590,8 +5590,7 @@ FxExpression *FxIdentifier::Resolve(FCompileContext& ctx)
|
|||
goto foundit;
|
||||
}
|
||||
|
||||
auto cvar = FindCVar(Identifier.GetChars(), nullptr);
|
||||
if (cvar != nullptr)
|
||||
if (auto *cvar = FindCVar(Identifier.GetChars(), nullptr))
|
||||
{
|
||||
if (cvar->GetFlags() & CVAR_USERINFO)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue