Skip to content
Snippets Groups Projects

Invalid node hotfix master

Merged Monster Iestyn requested to merge invalid-node-hotfix_master into master
+ 6
0
Compare changes
  • Side-by-side
  • Inline
+ 6
0
@@ -716,6 +716,12 @@ void Net_CloseConnection(INT32 node)
if (!node)
return;
if (node < 0 || node >= MAXNETNODES) // prevent invalid nodes from crashing the game
{
CONS_Alert(CONS_WARNING, M_GetText("Net_CloseConnection: invalid node %d detected!\n"), node);
return;
}
nodes[node].flags |= NF_CLOSE;
// try to Send ack back (two army problem)
Loading