AP_Scripting: correct generator bug

This commit is contained in:
Peter Hall 2020-04-03 14:50:27 +01:00 committed by Andrew Tridgell
parent 0bfa2638ce
commit 16d01f03fa
1 changed files with 2 additions and 1 deletions

View File

@ -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;