From 012fcbea8f2b462fbc14f154224dd0606fce37ec Mon Sep 17 00:00:00 2001 From: cloudwalk Date: Tue, 26 May 2020 16:41:58 +0000 Subject: [PATCH] Fix compiler warning in custom stat clearing git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12591 d7cf8633-e32d-0410-b094-e92efae38249 --- svvm_cmds.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/svvm_cmds.c b/svvm_cmds.c index 8e8b00ad..5b99fc90 100644 --- a/svvm_cmds.c +++ b/svvm_cmds.c @@ -1636,11 +1636,8 @@ static int vm_customstats_last; void VM_CustomStats_Clear (void) { - if(vm_customstats) - { - memset(vm_customstats, 0, sizeof(vm_customstats)); - vm_customstats_last = -1; - } + memset(vm_customstats, 0, sizeof(vm_customstats)); + vm_customstats_last = -1; } void VM_SV_UpdateCustomStats (client_t *client, prvm_edict_t *ent, sizebuf_t *msg, int *stats) -- 2.39.2