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