From 4dc85c8a07edf9c0e1bc9c7aec6becc32d068900 Mon Sep 17 00:00:00 2001 From: terry-norbraten <tnorb@comcast.net> Date: Wed, 10 Jun 2020 15:54:12 -0700 Subject: [PATCH] note --- src/edu/nps/moves/dis7/utilities/stream/PduPlayer.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/edu/nps/moves/dis7/utilities/stream/PduPlayer.java b/src/edu/nps/moves/dis7/utilities/stream/PduPlayer.java index 74ab847cde..5ec1250128 100644 --- a/src/edu/nps/moves/dis7/utilities/stream/PduPlayer.java +++ b/src/edu/nps/moves/dis7/utilities/stream/PduPlayer.java @@ -300,10 +300,9 @@ public class PduPlayer { datagramPacket = new DatagramPacket(bufferShort, bufferShort.length, addr, port); datagramSocket.send(datagramPacket); // Add Points to X3D Components - globalByteBufferForX3dInterPolators = new byte[byteBuffer2.array().length / 4]; globalByteBufferForX3dInterPolators = bufferShort.clone(); - x3dInterpolators.addPointsToMap(globalByteBufferForX3dInterPolators); - x3dLineSet.addPointsToMap(globalByteBufferForX3dInterPolators); + x3dInterpolators.addPointsToMap(globalByteBufferForX3dInterPolators); // gets cloned again + x3dLineSet.addPointsToMap(globalByteBufferForX3dInterPolators); // gets cloned again type = DISPDUType.getEnumForValue(Byte.toUnsignedInt(bufferShort[2])); // 3rd byte System.out.println("Sent PDU: " + type); } -- GitLab