From 8f1db245041a86ec1eab410da3ad705ce29f4dff Mon Sep 17 00:00:00 2001 From: Nimetu Date: Sun, 25 Apr 2021 14:11:19 +0300 Subject: [PATCH] Fix detecting jpg image --- nel/src/misc/bitmap.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nel/src/misc/bitmap.cpp b/nel/src/misc/bitmap.cpp index 33c0cec43..ee6a0e69e 100644 --- a/nel/src/misc/bitmap.cpp +++ b/nel/src/misc/bitmap.cpp @@ -3568,7 +3568,7 @@ void CBitmap::loadSize(NLMISC::IStream &f, uint32 &retWidth, uint32 &retHeight) } while(!eof); } - else if(fileType == JPG_HEADER) + else if(memcmp(&fileType, &JPG_HEADER, 2) == 0) { uint8 blockMarker1 = 0; uint8 blockMarker2 = 0;