Fixed compilation with Clang

src/scripting/backend/codegen.cpp:8568:10: error: cannot initialize return object of type 'FxExpression *' with an rvalue of type 'bool'
This commit is contained in:
alexey.lysiuk 2017-03-06 10:30:35 +02:00
parent f28bdf12a0
commit 4eb9f662cb
1 changed files with 1 additions and 1 deletions

View File

@ -8565,7 +8565,7 @@ FxExpression *FxVMFunctionCall::Resolve(FCompileContext& ctx)
if (!CheckAccessibility(ctx.Version))
{
delete this;
return false;
return nullptr;
}
// This should never happen.
if (Self == nullptr && (Function->Variants[0].Flags & VARF_Method))