From 2382d45cfcebcc458f8889eb1477a5d9a8716939 Mon Sep 17 00:00:00 2001 From: havoc Date: Mon, 19 Feb 2007 01:46:44 +0000 Subject: [PATCH] fixed parmcount check on VM_SV_AddStat from 2 parameters to 3 git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6863 d7cf8633-e32d-0410-b094-e92efae38249 --- svvm_cmds.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/svvm_cmds.c b/svvm_cmds.c index f139e6f3..2a1cb181 100644 --- a/svvm_cmds.c +++ b/svvm_cmds.c @@ -1397,7 +1397,7 @@ void VM_SV_WriteAutoSentStats (client_t *client, prvm_edict_t *ent, sizebuf_t *m } } -// void(float index, float type, .void field) SV_AddStat = #470; +// void(float index, float type, .void field) SV_AddStat = #232; // Set up an auto-sent player stat. // Client's get thier own fields sent to them. Index may not be less than 32. // Type is a value equating to the ev_ values found in qcc to dictate types. Valid ones are: @@ -1409,7 +1409,7 @@ static void VM_SV_AddStat (void) int off, i; unsigned char type; - VM_SAFEPARMCOUNT(2, VM_SV_AddStat); + VM_SAFEPARMCOUNT(3, VM_SV_AddStat); if(!vm_autosentstats) { -- 2.39.2