diff --git a/C/src/xplaneConnect.c b/C/src/xplaneConnect.c index 9eb2f7a..e4e633e 100755 --- a/C/src/xplaneConnect.c +++ b/C/src/xplaneConnect.c @@ -685,7 +685,7 @@ int sendWYPT(XPCSocket sock, WYPT_OP op, float points[], int count) memcpy(buffer + 7, points, ptLen); // Send Command - if (sendUDP(sock, buffer, 40) < 0) + if (sendUDP(sock, buffer, 7 + 12 * count) < 0) { printError("sendWYPT", "Failed to send command"); return -2;