From: cloudwalk Date: Tue, 26 May 2020 16:41:58 +0000 (+0000) Subject: Fix compiler warning in custom stat clearing X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=012fcbea8f2b462fbc14f154224dd0606fce37ec;p=xonotic%2Fdarkplaces.git Fix compiler warning in custom stat clearing git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12591 d7cf8633-e32d-0410-b094-e92efae38249 --- 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)