From 6415c0bfc997c73fcda1d64c50c3750b34f55621 Mon Sep 17 00:00:00 2001 From: Kim Kulling Date: Tue, 20 Sep 2022 21:39:09 +0200 Subject: [PATCH] FIX: Use attribute to fix warning. --- code/AssetLib/MD5/MD5Parser.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/AssetLib/MD5/MD5Parser.cpp b/code/AssetLib/MD5/MD5Parser.cpp index e0a7da654..462da9cf3 100644 --- a/code/AssetLib/MD5/MD5Parser.cpp +++ b/code/AssetLib/MD5/MD5Parser.cpp @@ -64,7 +64,7 @@ MD5Parser::MD5Parser(char *_buffer, unsigned int _fileSize) : buffer(_buffer), b ai_assert(nullptr != _buffer); ai_assert(0 != _fileSize); - bufferEnd = buffer + _fileSize; + bufferEnd = buffer + fileSize; ASSIMP_LOG_DEBUG("MD5Parser begin"); // parse the file header