]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
Fix compiler warning in custom stat clearing
authorcloudwalk <cloudwalk@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 26 May 2020 16:41:58 +0000 (16:41 +0000)
committercloudwalk <cloudwalk@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 26 May 2020 16:41:58 +0000 (16:41 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12591 d7cf8633-e32d-0410-b094-e92efae38249

svvm_cmds.c

index 8e8b00ad5e166a257b3aefa4fd75993452f3bb73..5b99fc904d4bc992335128f46b9895dcb42f092f 100644 (file)
@@ -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)