memvector resize needs to set _count as well

This commit is contained in:
Wolfgang (Blub) Bumiller 2012-08-22 15:24:24 +02:00
parent 6cbc0a84d7
commit 77e5807a83

View file

@ -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; \