From: havoc Date: Wed, 25 May 2005 08:04:25 +0000 (+0000) Subject: fix bug in last commit (msg->, not buf.) X-Git-Tag: xonotic-v0.1.0preview~4844 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=b0497c46314201b33197e26392d081077f23d36e;p=xonotic%2Fdarkplaces.git fix bug in last commit (msg->, not buf.) git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5337 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/protocol.c b/protocol.c index 8367824d..f9204142 100644 --- a/protocol.c +++ b/protocol.c @@ -2129,7 +2129,7 @@ void EntityFrame5_WriteFrame(sizebuf_t *msg, entityframe5_database_t *d, int num // write stat updates if (sv.protocol != PROTOCOL_QUAKE && sv.protocol != PROTOCOL_QUAKEDP && sv.protocol != PROTOCOL_NEHAHRAMOVIE && sv.protocol != PROTOCOL_DARKPLACES1 && sv.protocol != PROTOCOL_DARKPLACES2 && sv.protocol != PROTOCOL_DARKPLACES3 && sv.protocol != PROTOCOL_DARKPLACES4 && sv.protocol != PROTOCOL_DARKPLACES5) { - for (i = 0;i < MAX_CL_STATS && buf.cursize + 6 + 11 <= buf.maxsize;i++) + for (i = 0;i < MAX_CL_STATS && msg->cursize + 6 + 11 <= msg->maxsize;i++) { if (d->statsdeltabits[i>>3] & (1<<(i&7))) {