mirror of
https://github.com/openmoh/openmohaa.git
synced 2025-04-28 13:47:58 +03:00
Don't set the last radar time if the entity number is above the max number of clients
This commit is contained in:
parent
d19328230c
commit
f5558d106e
1 changed files with 1 additions and 1 deletions
|
@ -1044,7 +1044,7 @@ static void SV_BuildClientSnapshot( client_t *client ) {
|
|||
frame->first_entity = svs.nextSnapshotEntities;
|
||||
for ( i = 0 ; i < entityNumbers.numSnapshotEntities ; i++ ) {
|
||||
ent = SV_GentityNum(entityNumbers.snapshotEntities[i]);
|
||||
if (ent->client) {
|
||||
if (ent->client && ent->s.number < svs.iNumClients) {
|
||||
assert(ent->s.number < MAX_CLIENTS);
|
||||
client->lastRadarTime[ent->s.number] = svs.time;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue