]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - clvm_cmds.c
fix another typo
[xonotic/darkplaces.git] / clvm_cmds.c
index b2a4f3cdbb3921148b3e4a77092e55c10149033e..756da39abb582a54b790c6eaf83d13e032399b1a 100644 (file)
@@ -190,7 +190,7 @@ static void VM_CL_sound (void)
                return;
        }
 
-       CL_VM_GetEntitySoundOrigin(PRVM_NUM_FOR_EDICT(entity), org);
+       CL_VM_GetEntitySoundOrigin(MAX_EDICTS + PRVM_NUM_FOR_EDICT(entity), org);
        S_StartSound(MAX_EDICTS + PRVM_NUM_FOR_EDICT(entity), channel, S_FindName(sample), org, volume, attenuation);
 }