From 9e160a615b83477f8eec2ba38e16afff6ea9bac4 Mon Sep 17 00:00:00 2001 From: divverent Date: Fri, 10 Sep 2010 23:23:22 +0000 Subject: [PATCH] add a type cast for C++ git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10454 d7cf8633-e32d-0410-b094-e92efae38249 --- snd_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- 2.39.2