From d6e089d87f1f52ef29bb6986bcb756110f70fef8 Mon Sep 17 00:00:00 2001 From: Spoike Date: Sun, 24 Nov 2013 17:31:59 +0000 Subject: [PATCH] small bug there when not running any progs... git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@4537 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/common/pr_bgcmd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engine/common/pr_bgcmd.c b/engine/common/pr_bgcmd.c index 91b71702c..e2e818d14 100644 --- a/engine/common/pr_bgcmd.c +++ b/engine/common/pr_bgcmd.c @@ -4624,7 +4624,7 @@ void PR_ProgsAdded(pubprogfuncs_t *prinst, int newprogs, const char *modulename) vfsfile_t *f = NULL; char lang[64], *h; extern cvar_t language; - if (newprogs == -1) + if (!prinst || newprogs < 0) return; if (*language.string) {