2
0
mirror of https://github.com/rehlds/rehlds.git synced 2024-12-27 07:05:43 +03:00

[HLTV] Fix reverse-engineering mistake in World::WritePacketEntities

This commit is contained in:
s1lentq 2024-08-01 00:12:34 +07:00
parent ed954a710f
commit c8308a2c60

View File

@ -1341,7 +1341,7 @@ void World::WritePacketEntities(BitBuffer *stream, frame_t *frame, frame_t *delt
header.remove = false;
delta_t *delta = GetDeltaEncoder(newindex, header.custom);
m_Delta.WriteDelta(stream, (byte *)&deltaEntities[oldnum], (byte *)&frameEntities[newnum], true, delta, &header);
m_Delta.WriteDelta(stream, (byte *)&deltaEntities[newindex], (byte *)&frameEntities[newnum], false, delta, &header);
oldnum++;
newnum++;