diff --git a/source/src/client.cpp b/source/src/client.cpp index e0767dab..6039106b 100644 --- a/source/src/client.cpp +++ b/source/src/client.cpp @@ -1047,6 +1047,12 @@ double dlpackage(package *pck) string req, pckname = ""; sprintf(req, "%s/%s%s", pck->source->addr, strreplace(pckname, pck->name, " ", "%20"), (pck->type==PCK_MAP || pck->type==PCK_MAPMODEL || pck->type==PCK_SKYBOX) ? ".zip" : ""); conoutf(_("downloading %s from %s ..."), pck->name, pck->source->addr); + if(!outfile) + { + pck->pending = false; + conoutf("\f3failed to write temporary file"); + return 0; + } int result, httpresult = 0; double dlsize;