Browse Source

Update HL1MDLLoader.cpp

Add missing const
Kim Kulling 5 years ago
parent
commit
6a5ab0381d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      code/MDL/HalfLife/HL1MDLLoader.cpp

+ 1 - 1
code/MDL/HalfLife/HL1MDLLoader.cpp

@@ -359,7 +359,7 @@ void HL1MDLLoader::read_texture(const Texture_HL1 *ptexture,
         aiColor3D &last_palette_color) {
     int outwidth, outheight;
     int i, j;
-    static size_t BuffenLen = 256;
+    static const size_t BuffenLen = 256;
     int row1[BuffenLen], row2[BuffenLen], col1[BuffenLen], col2[BuffenLen];
     unsigned char *pix1, *pix2, *pix3, *pix4;