[Download] Only create dir when downloading a map

This commit is contained in:
momo5502 2017-05-30 21:07:05 +02:00
parent 15aea4e0bc
commit a54e322f9c

View File

@ -221,7 +221,7 @@ namespace Components
return false;
}
Utils::IO::CreateDir("usermaps/" + download->mod);
if (download->isMap) Utils::IO::CreateDir("usermaps/" + download->mod);
Utils::IO::WriteFile(path, fDownload.buffer);
return true;