Fix downloaded background images not showing

develop
Nimetu 3 years ago
parent 028f6cdd3e
commit 5c53148907

@ -350,7 +350,7 @@ namespace NLGUI
void CGroupHTML::TextureDownloadCB::finish()
{
// tmpdest file does not exist if download skipped (ie cache was used)
if (CFile::fileExists(tmpdest) && CFile::getFileSize(tmpdest) == 0)
if (CFile::fileExists(tmpdest) && CFile::getFileSize(tmpdest) > 0)
{
if (CFile::fileExists(dest))
CFile::deleteFile(dest);

Loading…
Cancel
Save