mirror of
https://github.com/fabiangreffrath/woof.git
synced 2025-09-22 19:38:06 -04:00
use I_Realloc in m_array.h
This commit is contained in:
parent
ae45b03db3
commit
ebba555e1f
@ -21,7 +21,7 @@
|
||||
#include <stdlib.h>
|
||||
#include <stddef.h>
|
||||
|
||||
#include "doomtype.h"
|
||||
#include "i_system.h"
|
||||
|
||||
#ifndef M_ARRAY_INIT_CAPACITY
|
||||
#define M_ARRAY_INIT_CAPACITY 8
|
||||
@ -83,7 +83,7 @@ inline static void *M_ArrayGrow(void *v, size_t esize, int n)
|
||||
if (v)
|
||||
{
|
||||
p = array_ptr(v);
|
||||
p = realloc(p, sizeof(m_array_buffer_t) + (p->capacity + n) * esize);
|
||||
p = I_Realloc(p, sizeof(m_array_buffer_t) + (p->capacity + n) * esize);
|
||||
p->capacity += n;
|
||||
}
|
||||
else
|
||||
|
Loading…
x
Reference in New Issue
Block a user