// $Id$
-#include <Include/compiler.h>
+#include <simgear/compiler.h>
#ifdef FG_MATH_EXCEPTION_CLASH
# include <math.h>
#include STL_FUNCTIONAL
#include STL_ALGORITHM
-#include <Debug/logstream.hxx>
-#include <Bucket/newbucket.hxx>
+#include <simgear/bucket/newbucket.hxx>
+#include <simgear/debug/logstream.hxx>
#include "tileentry.hxx"
<< " texture coordinate arrays" );
for ( i = 0; i < (int)vec3_ptrs.size(); ++i ) {
+#ifdef MACOS
+ delete [] vec3_ptrs[i];
+#else
delete vec3_ptrs[i];
+#endif
}
vec3_ptrs.clear();
for ( i = 0; i < (int)vec2_ptrs.size(); ++i ) {
+#ifdef MACOS
+ delete [] vec2_ptrs[i];
+#else
delete vec2_ptrs[i];
+#endif
}
vec2_ptrs.clear();
// find the first parent (should only be one)
ssgBranch *parent = select_ptr->getParent( 0 ) ;
if( parent ) {
- my_remove_branch( select_ptr );
+ // my_remove_branch( select_ptr );
parent->removeKid( select_ptr );
} else {
FG_LOG( FG_TERRAIN, FG_ALERT,