Fixed bogus assert in callfunction (bug 4487, r=fyren).
Fixed bogus assert in callfunction (
bug 4487, r=fyren).
1.1 --- a/sourcepawn/compiler/sc3.c Fri Jul 02 18:12:31 2010 -0700
1.2 +++ b/sourcepawn/compiler/sc3.c Fri Jul 02 18:15:21 2010 -0700
1.3 @@ -2383,7 +2383,7 @@
1.4 if (arg[argidx].ident!=0 && arg[argidx].numtags==1) /* set the expected tag, if any */
1.5 lval.cmptag=arg[argidx].tags[0];
1.6 lvalue=hier14(&lval);
1.7 - assert(sc_status==statFIRST || arg[argidx].tags!=NULL);
1.8 + assert(sc_status==statFIRST || arg[argidx].ident == 0 || arg[argidx].tags!=NULL);
1.9 switch (arg[argidx].ident) {
1.10 case 0:
1.11 error(92); /* argument count mismatch */