diff --git a/engine/client/pr_csqc.c b/engine/client/pr_csqc.c index 922a15c79..a607284d6 100644 --- a/engine/client/pr_csqc.c +++ b/engine/client/pr_csqc.c @@ -1168,7 +1168,10 @@ static void PF_cs_getstati(progfuncs_t *prinst, struct globalvars_s *pr_globals) { int first, count; first = G_FLOAT(OFS_PARM1); - count = G_FLOAT(OFS_PARM2); + if (*prinst->callargc > 2) + count = G_FLOAT(OFS_PARM2); + else + count = 1; G_FLOAT(OFS_RETURN) = (((unsigned int)val)&(((1<>first; } else