Permalink
Browse files

Hopefully fix editor crash with RGB (no transparency) images

  • Loading branch information...
def- committed Sep 18, 2015
1 parent 336e916 commit aa4bbed178258e9157ecd6b2c82ca3292b70efdf
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/game/editor/editor.cpp
@@ -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;

0 comments on commit aa4bbed

Please sign in to comment.