Implemented tetrahedra, octahedra, dodecahedra, and icosahedra. Checked in on behalf...
[freeglut] / freeglut-1.3 / freeglut_structure.c
index 79b3545..2604f1d 100644 (file)
@@ -234,9 +234,9 @@ static void fghRemoveMenuFromWindow( SFG_Window* window, SFG_Menu* menu )
      * Call this function for all of the window's children recursively:
      */
     for( subWindow = window->Children.First; subWindow;
-         subWindow = subWindow->Node.Next);
+         subWindow = subWindow->Node.Next)
     {
-        fghRemoveMenuFromWindow(subWindow, menu );
+        fghRemoveMenuFromWindow( subWindow, menu );
     }
 }
 
@@ -596,6 +596,7 @@ void fgListAppend(SFG_List *list, SFG_Node *node)
 
     if ( (ln = list->Last) != NULL )
     {
+        ln->Next = node;
         node->Prev = ln;
     }
     else