From 84bd3944b2c8d15445bae540b2d20ee599f346d9 Mon Sep 17 00:00:00 2001 From: Eric Wasylishen Date: Wed, 3 Jun 2015 03:54:47 +0000 Subject: [PATCH] Modlist_Init: (win32) don't list "." as a mod. git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1224 af15c1b1-3010-417e-b628-4374ebc0bcbd --- Quake/host_cmd.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Quake/host_cmd.c b/Quake/host_cmd.c index f69e6150..a43e37d3 100644 --- a/Quake/host_cmd.c +++ b/Quake/host_cmd.c @@ -247,6 +247,9 @@ void Modlist_Init (void) do { + if (!strcmp(fdat.cFileName, ".")) + continue; + q_snprintf (mod_string, sizeof(mod_string), "%s/%s/progs.dat", com_basedir, fdat.cFileName); mod_fhnd = FindFirstFile(mod_string, &mod_fdat); if (mod_fhnd != INVALID_HANDLE_VALUE) {