diff --git a/src/engine/model/skelmodel.h b/src/engine/model/skelmodel.h index 881a54049..6ec24c95f 100644 --- a/src/engine/model/skelmodel.h +++ b/src/engine/model/skelmodel.h @@ -313,7 +313,7 @@ struct skelmodel : animmodel template void interpverts(const dualquat * RESTRICT bdata1, const dualquat * RESTRICT bdata2, T * RESTRICT vdata, skin &s) { - const int blendoffset = (static_cast(group))->skel->numgpubones; + constexpr int blendoffset = (static_cast(group))->skel->numgpubones; bdata2 -= blendoffset; vdata += voffset; for(int i = 0; i < numverts; ++i) diff --git a/src/engine/model/vertmodel.h b/src/engine/model/vertmodel.h index 50d597863..4ed8e56da 100644 --- a/src/engine/model/vertmodel.h +++ b/src/engine/model/vertmodel.h @@ -255,7 +255,7 @@ struct vertmodel : animmodel tag *tags; int numtags; - static const int maxvbocache = 16; + static constexpr int maxvbocache = 16; vbocacheentry vbocache[maxvbocache]; ushort *edata;