diff --git a/neo/tools/compilers/aas/BrushBSP.cpp b/neo/tools/compilers/aas/BrushBSP.cpp index c77d1a6a..7cbe1075 100644 --- a/neo/tools/compilers/aas/BrushBSP.cpp +++ b/neo/tools/compilers/aas/BrushBSP.cpp @@ -1418,13 +1418,13 @@ void idBrushBSP::FloodThroughPortals_r( idBrushBSPNode *node, int contents, int idBrushBSPPortal *p; int s; - if ( node->occupied ) { - common->Error( "FloodThroughPortals_r: node already occupied\n" ); - } if ( !node ) { common->Error( "FloodThroughPortals_r: NULL node\n" ); } + if ( node->occupied ) { + common->Error( "FloodThroughPortals_r: node already occupied\n" ); + } node->occupied = depth; for ( p = node->portals; p; p = p->next[s] ) {