diff --git a/src/Scenery/tileentry.cxx b/src/Scenery/tileentry.cxx index 97d5d372e..b6bb04198 100644 --- a/src/Scenery/tileentry.cxx +++ b/src/Scenery/tileentry.cxx @@ -702,7 +702,7 @@ static int fgPartialFreeSSGtree( ssgBranch *b, int n ) { int num_deletes = 0; for ( int i = 0; i < b->getNumKids(); ++i ) { ssgEntity *kid = b->getKid(i); - if ( kid->isAKindOf( ssgTypeBranch() ) ) { + if ( kid->isAKindOf( ssgTypeBranch() ) && kid->getRef() <= 1 ) { int result = fgPartialFreeSSGtree( (ssgBranch *)kid, n ); num_deletes += result; n -= result;