Skip to content

Commit

Permalink
server: remove node entity if it MAX_NODES limit was hit (#510)
Browse files Browse the repository at this point in the history
Was discovered by .mk (mikk155) in TWHL Discord chat.
  • Loading branch information
a1batross authored Feb 7, 2025
1 parent 46e12d2 commit ae9d0d3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions dlls/nodes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1588,6 +1588,7 @@ void CNodeEnt::Spawn( void )
if( WorldGraph.m_cNodes >= MAX_NODES )
{
ALERT( at_aiconsole, "cNodes >= MAX_NODES\n" );
REMOVE_ENTITY( edict() );
return;
}

Expand Down

0 comments on commit ae9d0d3

Please sign in to comment.