From 4eb9f662cbdab3211885d131725c5ee36f0791b9 Mon Sep 17 00:00:00 2001 From: "alexey.lysiuk" Date: Mon, 6 Mar 2017 10:30:35 +0200 Subject: [PATCH] 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' --- src/scripting/backend/codegen.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scripting/backend/codegen.cpp b/src/scripting/backend/codegen.cpp index 06f8757c3..3c3240ac0 100644 --- a/src/scripting/backend/codegen.cpp +++ b/src/scripting/backend/codegen.cpp @@ -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))