diff --git a/sourcepawn/compiler/sc3.c b/sourcepawn/compiler/sc3.c index 5ff02707..c9a86974 100644 --- a/sourcepawn/compiler/sc3.c +++ b/sourcepawn/compiler/sc3.c @@ -2365,7 +2365,7 @@ static int nesting=0; */ } else { arglist[argpos]=ARG_DONE; /* flag argument as "present" */ - if (arg[argidx].numtags==1) /* set the expected tag, if any */ + if (arg[argidx].ident!=0 && arg[argidx].numtags==1) /* set the expected tag, if any */ lval.cmptag=arg[argidx].tags[0]; lvalue=hier14(&lval); assert(sc_status==statFIRST || arg[argidx].tags!=NULL);