From e32d29a6db0b593e4e61188ed3ffc1449605ebc9 Mon Sep 17 00:00:00 2001 From: thilo Date: Sun, 6 Apr 2008 02:13:43 +0000 Subject: Make sure that one broken shader file cannot crash the game / make the other shaders unusable. git-svn-id: svn://svn.icculus.org/quake3/trunk@1295 edf5b092-35ff-0310-97b2-ce42778d08ea --- code/qcommon/q_shared.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'code/qcommon/q_shared.c') diff --git a/code/qcommon/q_shared.c b/code/qcommon/q_shared.c index 18b71d3..6fa6b76 100644 --- a/code/qcommon/q_shared.c +++ b/code/qcommon/q_shared.c @@ -599,7 +599,7 @@ void SkipBracedSection (char **program) { depth = 0; do { token = COM_ParseExt( program, qtrue ); - if( token[1] == 0 ) { + if( *program && token[1] == 0 ) { if( token[0] == '{' ) { depth++; } -- cgit v1.2.3