From b5b4bff2fc876393118888525379df97c92c7230 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Fri, 2 Jul 2010 18:15:21 -0700 Subject: [PATCH] Fixed bogus assert in callfunction (bug 4487, r=fyren). --- sourcepawn/compiler/sc3.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 */