Fixed stupid linked list bug.
authorRyan C. Gordon <icculus@icculus.org>
Tue, 10 Feb 2009 17:24:05 -0500
changeset 558 314c86ff14dd
parent 557 ef6a607a5618
child 559 d34ac77da171
Fixed stupid linked list bug. Double-penance: it is cut-and-pasted in three places!
mojoshader.c
mojoshader_assembler.c
mojoshader_preprocessor.c
--- a/mojoshader.c	Tue Feb 10 10:43:37 2009 -0500
+++ b/mojoshader.c	Tue Feb 10 17:24:05 2009 -0500
@@ -404,7 +404,7 @@
         while (item != NULL)
         {
             prev = item;
-            item = error->next;
+            item = item->next;
         } // while
 
         if (prev == NULL)
--- a/mojoshader_assembler.c	Tue Feb 10 10:43:37 2009 -0500
+++ b/mojoshader_assembler.c	Tue Feb 10 17:24:05 2009 -0500
@@ -152,7 +152,7 @@
         while (item != NULL)
         {
             prev = item;
-            item = error->next;
+            item = item->next;
         } // while
 
         if (prev == NULL)
--- a/mojoshader_preprocessor.c	Tue Feb 10 10:43:37 2009 -0500
+++ b/mojoshader_preprocessor.c	Tue Feb 10 17:24:05 2009 -0500
@@ -658,7 +658,7 @@
                 while (item != NULL)
                 {
                     prev = item;
-                    item = error->next;
+                    item = item->next;
                 } // while
 
                 if (prev == NULL)