From d1de78d8bcd94546a2186d5b9c43249d75bd9ee7 Mon Sep 17 00:00:00 2001 From: hendricks266 Date: Fri, 28 Jul 2017 11:29:12 +0000 Subject: [PATCH] Don't drink and copypaste, kids. Unfucks r6379. git-svn-id: https://svn.eduke32.com/eduke32@6395 1a8010ca-5511-0410-912e-c29ae57300e0 --- source/build/src/mdsprite.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/build/src/mdsprite.cpp b/source/build/src/mdsprite.cpp index 7d1688986..8a3ffe312 100644 --- a/source/build/src/mdsprite.cpp +++ b/source/build/src/mdsprite.cpp @@ -1892,7 +1892,7 @@ int md3postload_polymer(md3model_t *m) uint32_t numverts = s->numverts; trii = 0; - while (framei < m->head.numframes) + while (trii < s->numtris) { int32_t const * const i = s->tris[trii].i; uint32_t const * const u = (uint32_t const *)i; @@ -1968,7 +1968,7 @@ int md3postload_polymer(md3model_t *m) } // now that we accumulated the TBNs, average and invert them for each vertex - int verti_end = m->head.numframes * s->numverts - 1; + int verti_end = m->head.numframes * s->numverts; verti = 0; while (verti < verti_end)