Skip to content

Commit aa4bbed

Browse files
committed
Hopefully fix editor crash with RGB (no transparency) images
1 parent 336e916 commit aa4bbed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/game/editor/editor.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ void CEditorImage::AnalyseTileFlags()
206206

207207
int tw = m_Width/16; // tilesizes
208208
int th = m_Height/16;
209-
if ( tw == th )
209+
if ( tw == th && m_Format == CImageInfo::FORMAT_RGBA )
210210
{
211211
unsigned char *pPixelData = (unsigned char *)m_pData;
212212

0 commit comments

Comments
 (0)