Changeset 2863 in orxonox.OLD for orxonox/trunk/importer/array.cc
- Timestamp:
- Nov 16, 2004, 1:19:54 AM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/importer/array.cc
r2848 r2863 69 69 printf ("Finalizing array.\n"); 70 70 if ((array = (GLfloat*)malloc( entryCount* sizeof(GLfloat))) == NULL) 71 // if ((array = new GLfloat [entryCount]) == NULL) 71 72 printf ("could not allocate %i data Blocks\n", entryCount); 72 73 Entry* walker = firstEntry; … … 77 78 } 78 79 finalized = true; 80 79 81 return; 80 82 } … … 91 93 printf ("adding new Entry to Array: %f\n", entry); 92 94 93 entryCount++;94 95 currentEntry->value = entry; 95 96 currentEntry->next = new Entry; 96 97 currentEntry = currentEntry->next; 97 98 currentEntry->next = NULL; 99 ++entryCount; 98 100 } 99 101 else
Note: See TracChangeset
for help on using the changeset viewer.