diff --git a/OgreMain/src/OgreFreeImageCodec2.cpp b/OgreMain/src/OgreFreeImageCodec2.cpp index 3261cacf4a7..f9f7b62dad6 100644 --- a/OgreMain/src/OgreFreeImageCodec2.cpp +++ b/OgreMain/src/OgreFreeImageCodec2.cpp @@ -657,7 +657,7 @@ namespace Ogre FIMEMORY *fiMem = FreeImage_OpenMemory( (uint8_t *)const_cast( magicNumberPtr ), static_cast( maxbytes ) ); - const FIBOOL bValid = FreeImage_ValidateFromMemory( (FREE_IMAGE_FORMAT)mFreeImageType, fiMem ); + const auto bValid = FreeImage_ValidateFromMemory( (FREE_IMAGE_FORMAT)mFreeImageType, fiMem ); FreeImage_CloseMemory( fiMem ); if( bValid )