diff --git a/source/build/src/polymost.cpp b/source/build/src/polymost.cpp index eb979180d..ae10449c6 100644 --- a/source/build/src/polymost.cpp +++ b/source/build/src/polymost.cpp @@ -7345,7 +7345,7 @@ static void tessectrap(const float *px, const float *py, const int32_t *point2, npoints = numpoints; z = 0; for (i=0; imdnum < 2) return; - int j = (models[mid]->mdnum == 3) ? ((md3model_t *)models[mid])->head.numsurfs : 0; + int const surfaces = (models[mid]->mdnum == 3) ? ((md3model_t *)models[mid])->head.numsurfs : 0; - for (bssize_t i = 0; i <= j; i++) mdloadskin((md2model_t *)models[mid], 0, dapalnum, i); + for (int i = 0; i <= surfaces; i++) + mdloadskin((md2model_t *)models[mid], 0, dapalnum, i); } #else /* if !defined USE_OPENGL */