diff --git a/sourcepawn/compiler/sc3.c b/sourcepawn/compiler/sc3.c index ab568b60..9c71fa25 100644 --- a/sourcepawn/compiler/sc3.c +++ b/sourcepawn/compiler/sc3.c @@ -2383,7 +2383,7 @@ static int nesting=0; 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); + assert(sc_status==statFIRST || arg[argidx].ident == 0 || arg[argidx].tags!=NULL); switch (arg[argidx].ident) { case 0: error(92); /* argument count mismatch */