From 0811b1c99cf247fa4d25a5dd58d3b6d547d66c72 Mon Sep 17 00:00:00 2001 From: Thilo Schulz Date: Sun, 6 Apr 2008 02:24:07 +0000 Subject: [PATCH] Actually take into account how SkipBracedSection works. It requires a section to start with a single separate '{'. So we need to require this here, too. --- code/renderer/tr_shader.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/renderer/tr_shader.c b/code/renderer/tr_shader.c index 830a410a..dfbea62b 100644 --- a/code/renderer/tr_shader.c +++ b/code/renderer/tr_shader.c @@ -2906,7 +2906,7 @@ static void ScanAndLoadShaderFiles( void ) oldp = p; token = COM_ParseExt(&p, qtrue); - if(*token != '{') + if(token[0] != '{' && token[1] != '\0') { ri.Printf(PRINT_WARNING, "WARNING: Bad shader file %s has incorrect syntax.\n", filename); ri.FS_FreeFile(buffers[i]);