From 6b204d1e2c6cf188ec0011e30be82a83c2d156e7 Mon Sep 17 00:00:00 2001 From: havoc Date: Tue, 3 May 2011 00:59:44 +0000 Subject: [PATCH] fix two compile errors in C++ mode git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11092 d7cf8633-e32d-0410-b094-e92efae38249 --- meshqueue.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.39.2