mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Hopefully fix editor crash with RGB (no transparency) images
This commit is contained in:
parent
336e916548
commit
aa4bbed178
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue