map_convert_07: Check for width/height 0

as suggested by Jupeyy
This commit is contained in:
def 2020-09-14 18:03:20 +02:00
parent c0f7a2bf03
commit f9ec8c5696

View file

@ -98,7 +98,7 @@ bool CheckImageDimensions(void *pItem, int Type, const char *pFilename)
CMapItemImage *pImgItem = (CMapItemImage *)pItem2;
if(pImgItem->m_Width % 16 == 0 && pImgItem->m_Height % 16 == 0)
if(pImgItem->m_Width % 16 == 0 && pImgItem->m_Height % 16 == 0 && pImgItem->m_Width > 0 && pImgItem->m_Height > 0)
return true;
char aTileLayerName[12];