Make sure that one broken shader file cannot crash the game / make the other shaders unusable.

This commit is contained in:
Thilo Schulz 2008-04-06 02:13:43 +00:00
parent 85bee47f52
commit 5c1167557a
2 changed files with 42 additions and 10 deletions

View file

@ -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++;
}