mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
map_convert_07: Check for width/height 0
as suggested by Jupeyy
This commit is contained in:
parent
c0f7a2bf03
commit
f9ec8c5696
|
@ -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];
|
||||
|
|
Loading…
Reference in a new issue