From 16d01f03fa7bb6d59c600f0ad9011348c9d839d6 Mon Sep 17 00:00:00 2001 From: Peter Hall <33176108+IamPete1@users.noreply.github.com> Date: Fri, 3 Apr 2020 14:50:27 +0100 Subject: [PATCH] AP_Scripting: correct generator bug --- libraries/AP_Scripting/generator/src/main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libraries/AP_Scripting/generator/src/main.c b/libraries/AP_Scripting/generator/src/main.c index a52f86bb6a..02dbec1797 100644 --- a/libraries/AP_Scripting/generator/src/main.c +++ b/libraries/AP_Scripting/generator/src/main.c @@ -1191,7 +1191,8 @@ void emit_userdata_method(const struct userdata *data, const struct method *meth emit_checker(arg->type, arg_count, skipped, " ", "argument"); arg_count++; } - if (arg->type.type != TYPE_LITERAL || arg->type.flags & TYPE_FLAGS_NULLABLE) { + if (//arg->type.type != TYPE_LITERAL || + arg->type.flags & TYPE_FLAGS_NULLABLE) { skipped++; } arg = arg->next;