better check for destinationnode

This commit is contained in:
Alug committed 2025-03-31 08:13:46 +02:00
1 parent 7b7d93a2d6
commit f51cd6977a
1 file changed
+1 -1
+1 -1
View File
@@ -297,7 +297,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);