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

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

No files matched your search

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