From 75c7b15b5541cc5c2c94b32c249d083d0a335a1b Mon Sep 17 00:00:00 2001 From: kimkulling Date: Thu, 26 Apr 2018 15:05:49 +0200 Subject: [PATCH] Fix c++11 usage. --- code/MDLMaterialLoader.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/MDLMaterialLoader.cpp b/code/MDLMaterialLoader.cpp index e80d3b560..2c21b188b 100644 --- a/code/MDLMaterialLoader.cpp +++ b/code/MDLMaterialLoader.cpp @@ -75,7 +75,7 @@ void MDLImporter::SearchPalette(const unsigned char** pszColorMap) { if (pcStream->FileSize() >= 768) { - constexpr size_t len = 256 * 3; + size_t len = 256 * 3; unsigned char* colorMap = new unsigned char[len]; szColorMap = colorMap; pcStream->Read(colorMap, len,1);