mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2025-01-18 14:21:36 +00:00
memvector resize needs to set _count as well
This commit is contained in:
parent
6cbc0a84d7
commit
77e5807a83
1 changed files with 1 additions and 0 deletions
1
gmqcc.h
1
gmqcc.h
|
@ -717,6 +717,7 @@ bool GMQCC_WARN Tself##_##mem##_resize(Tself *s, size_t c) \
|
|||
if (!reall) { return false; } \
|
||||
memcpy(reall, s->mem, sizeof(Twhat) * s->mem##_count); \
|
||||
s->mem##_alloc = c; \
|
||||
s->mem##_count = c; \
|
||||
mem_d(s->mem); \
|
||||
s->mem = reall; \
|
||||
return true; \
|
||||
|
|
Loading…
Reference in a new issue