]> git.xonotic.org Git - xonotic/netradiant.git/blobdiff - radiant/csg.cpp
Q3map2:
[xonotic/netradiant.git] / radiant / csg.cpp
index 1b824b6abedc8f5e0e1199fc841803bb9cd55271..753c5077e5998abaf9dd8fce916724acb322e405 100644 (file)
@@ -419,8 +419,9 @@ void post( const scene::Path& path, scene::Instance& instance ) const {
                if ( brush != 0
                         && Instance_getSelectable( instance )->isSelected()
                         && path.size() > 1 ) {
+                       scene::Node& parent = path.parent();
                        Path_deleteTop( path );
-                       if( Node_getTraversable( path.parent() )->empty() ){
+                       if( Node_getTraversable( parent )->empty() ){
                                m_eraseParent = true;
                                //globalOutputStream() << "Empty node?!.\n";
                        }