From: Wolfgang (Blub) Bumiller Date: Wed, 22 Aug 2012 13:24:24 +0000 (+0200) Subject: memvector resize needs to set _count as well X-Git-Tag: 0.1-rc1~98 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=77e5807a832ba238a0c114067ce16c63c39d3ae7;p=xonotic%2Fgmqcc.git memvector resize needs to set _count as well --- diff --git a/gmqcc.h b/gmqcc.h index bb03a9a..71d3ca9 100644 --- a/gmqcc.h +++ b/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; \