From 780f69ed2721aba20db504ccf0dc9762e4003592 Mon Sep 17 00:00:00 2001 From: Spoike Date: Thu, 13 Oct 2005 18:38:15 +0000 Subject: [PATCH] Rjlan made me find a bug. git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@1466 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/client/m_download.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/engine/client/m_download.c b/engine/client/m_download.c index e821d55cf..383bc0b63 100644 --- a/engine/client/m_download.c +++ b/engine/client/m_download.c @@ -84,6 +84,8 @@ package_t *BuildPackageList(FILE *f, int flags) for (i = 0; i < sizeof(downloadablelist)/sizeof(downloadablelist[0])-1; i++) { + if (!downloadablelist[i]) + break; if (!strcmp(downloadablelist[i], sl)) break; } @@ -314,6 +316,7 @@ qboolean M_Download_Key (struct menucustom_s *c, struct menu_s *m, int key) { if ((p->flags&DPF_WANTTOINSTALL) && !(p->flags&DPF_HAVEAVERSION)) { //if we want it and don't have it: + Con_Printf("Downloading %s (to %s)\n", p->fullname, p->dest); COM_CreatePath(va("%s/%s", com_gamedir, p->dest)); if (HTTP_CL_Get(p->src, p->dest, NULL)) p->flags|=DPF_HAVEAVERSION; //FIXME: This is error prone.