qbsp: replace last malloc with AllocMem
Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
This commit is contained in:
parent
b5c84dafa3
commit
262ffab5d5
|
|
@ -20,7 +20,6 @@
|
|||
*/
|
||||
|
||||
#include <limits.h>
|
||||
#include <malloc.h>
|
||||
|
||||
#include "qbsp.h"
|
||||
|
||||
|
|
@ -609,7 +608,7 @@ LinkConvexFaces(surface_t *planelist, node_t *leafnode)
|
|||
|
||||
// write the list of faces, and free the originals
|
||||
leaffaces += count;
|
||||
leafnode->markfaces = malloc(sizeof(face_t *) * (count + 1)); /* FIXME */
|
||||
leafnode->markfaces = AllocMem(OTHER, sizeof(face_t *) * (count + 1), true);
|
||||
|
||||
i = 0;
|
||||
for (surf = planelist; surf; surf = pnext) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue