]> git.xonotic.org Git - xonotic/netradiant.git/blobdiff - radiant/csg.cpp
Q3map2:
[xonotic/netradiant.git] / radiant / csg.cpp
index 753c5077e5998abaf9dd8fce916724acb322e405..5b9eb44a2c52e9f6861c968c475d5d78c51410bd 100644 (file)
@@ -670,8 +670,9 @@ void post( const scene::Path& path, scene::Instance& instance ) const {
                                                delete ( *i );
                                        }
                                }
+                               scene::Node& parent = path.parent();
                                Path_deleteTop( path );
-                               if( Node_getTraversable( path.parent() )->empty() ){
+                               if( Node_getTraversable( parent )->empty() ){
                                        m_eraseParent = true;
                                }
                        }