mojoshader_assembler.c
changeset 945 f00ea3986db8
parent 940 bc2a5efade5e
child 946 16fec3a3f687
--- a/mojoshader_assembler.c	Tue Nov 09 05:00:03 2010 -0500
+++ b/mojoshader_assembler.c	Tue Nov 09 05:05:41 2010 -0500
@@ -1515,7 +1515,7 @@
     retval->free = (ctx->free == MOJOSHADER_internal_free) ? NULL : ctx->free;
     retval->malloc_data = ctx->malloc_data;
 
-    retval->error_count = ctx->errors->count;
+    retval->error_count = errorlist_count(ctx->errors);
     retval->errors = errorlist_flatten(ctx->errors);
     if (ctx->out_of_memory)
     {