From: havoc Date: Thu, 19 May 2005 18:42:55 +0000 (+0000) Subject: changed EntityFrame5_ExpandEdicts call from using sv.num_edicts to sv.max_edicts... X-Git-Tag: xonotic-v0.1.0preview~4867 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=0279e64b5df253b56a14ee5300279de7f4fb09c5;p=xonotic%2Fdarkplaces.git changed EntityFrame5_ExpandEdicts call from using sv.num_edicts to sv.max_edicts to fix a crash git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5314 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/protocol.c b/protocol.c index a787f35e..eafd3e74 100644 --- a/protocol.c +++ b/protocol.c @@ -1941,8 +1941,8 @@ void EntityFrame5_WriteFrame(sizebuf_t *msg, entityframe5_database_t *d, int num qbyte data[128]; entityframe5_packetlog_t *packetlog; - if (sv.num_edicts > d->maxedicts) - EntityFrame5_ExpandEdicts(d, (sv.num_edicts + 255) & ~255); + if (sv.max_edicts > d->maxedicts) + EntityFrame5_ExpandEdicts(d, (sv.max_edicts + 255) & ~255); framenum = d->latestframenum + 1; d->viewentnum = viewentnum;