diff --git a/Quake/common.c b/Quake/common.c index 5e32afa6b..e53cdf6fa 100644 --- a/Quake/common.c +++ b/Quake/common.c @@ -2188,6 +2188,12 @@ static void COM_Game_f (void) return; } } + + if (Sys_FileType(va("%s/%s", com_basedir, p)) != FS_ENT_DIRECTORY) + { + Con_Printf("The game \"%s\" couldn't be found.\n", p); + return; + } if (!q_strcasecmp(p, COM_SkipPath(com_gamedir))) //no change {