X-Git-Url: https://de.git.xonotic.org/?a=blobdiff_plain;f=radiant%2Fcsg.cpp;fp=radiant%2Fcsg.cpp;h=be01396d0fa3b75898f09effce1f61f8866b8575;hb=5f72a1053d72cdbfe38d97e5b1fd9688316ceb40;hp=069c5c012e2c065966f8e003f97d62ae958c632b;hpb=fcb70e8e9cf76dd4993312a762e2ee255c1402a0;p=xonotic%2Fnetradiant.git diff --git a/radiant/csg.cpp b/radiant/csg.cpp index 069c5c01..be01396d 100644 --- a/radiant/csg.cpp +++ b/radiant/csg.cpp @@ -653,8 +653,9 @@ void post( const scene::Path& path, scene::Instance& instance ) const { } delete b; } + scene::Node& parent = path.parent(); Path_deleteTop( path ); - if( Node_getTraversable( path.parent() )->empty() ){ + if( Node_getTraversable( parent )->empty() ){ m_eraseParent = true; } }