Skip to content

Commit

Permalink
Hopefully fix editor crash with RGB (no transparency) images
Browse files Browse the repository at this point in the history
  • Loading branch information
def- committed Sep 18, 2015
1 parent 336e916 commit aa4bbed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/game/editor/editor.cpp
Expand Up @@ -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;

Expand Down

0 comments on commit aa4bbed

Please sign in to comment.