Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 2866 in orxonox.OLD for orxonox/trunk/src/array.cc


Ignore:
Timestamp:
Nov 16, 2004, 2:07:07 AM (20 years ago)
Author:
bensch
Message:

orxonox/trunk: merged importer to src again

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/array.cc

    r2853 r2866  
    6969    printf ("Finalizing array.\n"); 
    7070  if ((array = (GLfloat*)malloc( entryCount* sizeof(GLfloat))) == NULL)
     71  //  if ((array = new GLfloat [entryCount]) == NULL)
    7172    printf ("could not allocate %i data Blocks\n", entryCount);
    7273  Entry* walker = firstEntry;
     
    7778    }
    7879  finalized = true;
     80
    7981  return;
    8082}
     
    9193        printf ("adding new Entry to Array: %f\n", entry);
    9294     
    93       entryCount++;
    9495      currentEntry->value = entry;
    9596      currentEntry->next = new Entry;
    9697      currentEntry = currentEntry->next;
    9798      currentEntry->next = NULL;
     99      ++entryCount;
    98100    }
    99101  else
Note: See TracChangeset for help on using the changeset viewer.