Hopefully fix editor crash with RGB (no transparency) images

This commit is contained in:
def 2015-09-18 17:15:30 +02:00
parent 336e916548
commit aa4bbed178

View file

@ -206,7 +206,7 @@ void CEditorImage::AnalyseTileFlags()
int tw = m_Width/16; // tilesizes
int th = m_Height/16;
if ( tw == th )
if ( tw == th && m_Format == CImageInfo::FORMAT_RGBA )
{
unsigned char *pPixelData = (unsigned char *)m_pData;