From: havoc Date: Tue, 3 May 2011 00:59:44 +0000 (+0000) Subject: fix two compile errors in C++ mode X-Git-Tag: xonotic-v0.5.0~233 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=47cd17f13d91266d168b33eac09ec202fd952e2c;p=xonotic%2Fdarkplaces.git fix two compile errors in C++ mode git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11092 d7cf8633-e32d-0410-b094-e92efae38249 ::stable-branch::merge=6b204d1e2c6cf188ec0011e30be82a83c2d156e7 --- diff --git a/meshqueue.c b/meshqueue.c index aecb6ab6..ac82b677 100644 --- a/meshqueue.c +++ b/meshqueue.c @@ -85,10 +85,10 @@ void R_MeshQueue_RenderTransparent(void) trans_sortarraysize = r_transparent_sortarraysize.integer; if (trans_hash) Mem_Free(trans_hash); - trans_hash = Mem_Alloc(cls.permanentmempool, sizeof(trans_hash) * trans_sortarraysize); + trans_hash = (meshqueue_t **)Mem_Alloc(cls.permanentmempool, sizeof(trans_hash) * trans_sortarraysize); if (trans_hashpointer) Mem_Free(trans_hashpointer); - trans_hashpointer = Mem_Alloc(cls.permanentmempool, sizeof(trans_hashpointer) * trans_sortarraysize); + trans_hashpointer = (meshqueue_t ***)Mem_Alloc(cls.permanentmempool, sizeof(trans_hashpointer) * trans_sortarraysize); } // build index