diff --git a/code/nel/src/gui/group_html.cpp b/code/nel/src/gui/group_html.cpp index 98b908c7d..23bd2e671 100644 --- a/code/nel/src/gui/group_html.cpp +++ b/code/nel/src/gui/group_html.cpp @@ -659,10 +659,12 @@ namespace NLGUI if (download.type == StylesheetType) { - // no tmpfile if file was already in cache - if (CFile::fileExists(tmpfile) && CFile::fileExists(download.dest)) + if (CFile::fileExists(tmpfile)) { - CFile::deleteFile(download.dest); + if (CFile::fileExists(download.dest)) + { + CFile::deleteFile(download.dest); + } CFile::moveFile(download.dest, tmpfile); } cssDownloadFinished(download.url, download.dest);