- Fixed GCC compilation error.

It didn't like 'cvar' being declared between 'goto foundit' and the 'foundit' label.
This commit is contained in:
Edoardo Prezioso 2016-11-30 16:51:20 +01:00 committed by Christoph Oelckers
parent 1895feb185
commit 07c110d5f7
1 changed files with 1 additions and 2 deletions

View File

@ -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)
{