View Single Post
  #2 (permalink)  
Old 05-15-2008, 08:31 PM
ccoonen ccoonen is offline
PT Staff
Awards Showcase
Quality Tutorial Quality Tutorial Quality Tutorial Quality Tutorial 
Total Awards: 4
Join Date: Jun 2007
Location: Wisconsin
Posts: 308
iTrader: (0)
ccoonen is on a distinguished roadccoonen is on a distinguished roadccoonen is on a distinguished roadccoonen is on a distinguished road
Don't you have to delete in reverse? like this block - maybe you need to decrement the i (i--) instead of i++ so it acts as a pop from the array? Just a thought (thats how it works with AS3 anyways)
for(int i = 0; i < Length-1; i++){
delete[] Heights[i];
delete[] Normals[i];
delete[] Connections[i];
}
Reply With Quote