Fixed reference to wrong variable.
authorRyan C. Gordon <icculus@icculus.org>
Thu, 13 Jan 2011 04:13:07 -0500
changeset 978 0e17db32f9ce
parent 977 dc3fb84992b8
child 979 f3d1c6675d97
Fixed reference to wrong variable.
mojoshader_compiler.c
--- a/mojoshader_compiler.c	Thu Jan 13 02:50:21 2011 -0500
+++ b/mojoshader_compiler.c	Thu Jan 13 04:13:07 2011 -0500
@@ -2328,7 +2328,7 @@
 
             // map member to datatype
             assert(ast->derefstruct.datatype == NULL);
-            const MOJOSHADER_astDataTypeStructMember *mbrs = datatype->structure.members;
+            const MOJOSHADER_astDataTypeStructMember *mbrs = reduced->structure.members;
             int i;
             for (i = 0; i < reduced->structure.member_count; i++)
             {