From: divverent Date: Fri, 10 Sep 2010 23:23:22 +0000 (+0000) Subject: add a type cast for C++ X-Git-Tag: xonotic-v0.1.0preview~230^2~30 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=9e160a615b83477f8eec2ba38e16afff6ea9bac4;p=xonotic%2Fdarkplaces.git add a type cast for C++ git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10454 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/snd_main.c b/snd_main.c index ea8a1548..2c3d0ed4 100644 --- a/snd_main.c +++ b/snd_main.c @@ -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); }