mojoshader_preprocessor.c
changeset 945 f00ea3986db8
parent 944 9f9fa9650772
child 949 356f04114580
--- a/mojoshader_preprocessor.c	Tue Nov 09 05:00:03 2010 -0500
+++ b/mojoshader_preprocessor.c	Tue Nov 09 05:05:41 2010 -0500
@@ -2319,9 +2319,10 @@
     } // if
 
     memset(retval, '\0', sizeof (*retval));
-    if (errors->count > 0)
+    const int errcount = errorlist_count(errors);
+    if (errcount > 0)
     {
-        retval->error_count = errors->count;
+        retval->error_count = errcount;
         retval->errors = errorlist_flatten(errors);
         if (retval->errors == NULL)
         {