mojoshader.c
changeset 1062 ea5c89942bd3
parent 1061 dbf2735676ae
child 1075 61e5b2764ec8
--- a/mojoshader.c	Mon Oct 24 15:03:43 2011 -0400
+++ b/mojoshader.c	Tue Oct 25 02:24:45 2011 -0400
@@ -7451,8 +7451,8 @@
                 case 7:
                 {
                     operand->type = MOJOSHADER_PRESHADEROPERAND_TEMP;
-                    if (operand->index >= preshader->temp_count)
-                        preshader->temp_count = operand->index + 1;
+                    if (item >= preshader->temp_count)
+                        preshader->temp_count = item + 1;
                     break;
                 } // case
             } // switch