better check for destinationnode

This commit is contained in:
Alug 2025-03-31 08:13:46 +02:00 committed by NepDisk
parent 9bf9f6f9a3
commit a3b50ad518

View file

@ -337,7 +337,7 @@ static boolean Processackpak(void)
node->remotefirstack = netbuffer->ackreturn;
// Search the ackbuffer and free it
for (i = 0; i < MAXACKPACKETS; i++)
if (ackpak[i].acknum && ackpak[i].destinationnode == node - nodes
if (ackpak[i].acknum && ackpak[i].destinationnode == doomcom->remotenode
&& cmpack(ackpak[i].acknum, netbuffer->ackreturn) <= 0)
{
RemoveAck(i);