From 1bd7e18ba71c593516c8f1fdb3c7ab7666e50d7b Mon Sep 17 00:00:00 2001 From: kervala Date: Sun, 1 Jan 2017 22:40:52 +0100 Subject: [PATCH] Fixed: Loading of some JPEG variants --HG-- branch : develop --- code/nel/src/misc/bitmap.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/code/nel/src/misc/bitmap.cpp b/code/nel/src/misc/bitmap.cpp index a996c8546..0f92920f5 100644 --- a/code/nel/src/misc/bitmap.cpp +++ b/code/nel/src/misc/bitmap.cpp @@ -136,7 +136,8 @@ uint8 CBitmap::load(NLMISC::IStream &f, uint mipMapSkip) } #ifdef USE_JPEG - if (fileType == JPG_HEADER) + // only compare fist word + if (memcmp(&fileType, &JPG_HEADER, 2) == 0) { #ifdef NEL_ALL_BITMAP_WHITE uint8 result = readJPG(f);