]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
add a type cast for C++
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 10 Sep 2010 23:23:22 +0000 (23:23 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 10 Sep 2010 23:23:22 +0000 (23:23 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10454 d7cf8633-e32d-0410-b094-e92efae38249

snd_main.c

index ea8a154802a5f7368137545ab2ee480e65690174..2c3d0ed46a60f7ccf806df1d1d883dbad0788475 100644 (file)
@@ -2013,7 +2013,7 @@ void S_Update(const matrix4x4_t *listenermatrix)
                        if(listener_pvs)
                                Mem_Free(listener_pvs);
                        listener_pvsbytes = cl.worldmodel->brush.num_pvsclusterbytes;
-                       listener_pvs = Mem_Alloc(snd_mempool, listener_pvsbytes);
+                       listener_pvs = (unsigned char *) Mem_Alloc(snd_mempool, listener_pvsbytes);
                }
                cl.worldmodel->brush.FatPVS(cl.worldmodel, listener_origin, 2, listener_pvs, listener_pvsbytes, 0);
        }