- 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

View file

@ -5590,8 +5590,7 @@ FxExpression *FxIdentifier::Resolve(FCompileContext& ctx)
goto foundit; goto foundit;
} }
auto cvar = FindCVar(Identifier.GetChars(), nullptr); if (auto *cvar = FindCVar(Identifier.GetChars(), nullptr))
if (cvar != nullptr)
{ {
if (cvar->GetFlags() & CVAR_USERINFO) if (cvar->GetFlags() & CVAR_USERINFO)
{ {