]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
fix two compile errors in C++ mode
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 3 May 2011 00:59:44 +0000 (00:59 +0000)
committerRudolf Polzer <divVerent@xonotic.org>
Tue, 3 May 2011 13:49:25 +0000 (15:49 +0200)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11092 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=6b204d1e2c6cf188ec0011e30be82a83c2d156e7

meshqueue.c

index aecb6ab63cb329dafba4824db7a0cf4c935df5ee..ac82b677eaecccc747657e2d4ce640006309253d 100644 (file)
@@ -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