diff --git a/src/edu/nps/moves/dis7/utilities/stream/PduPlayer.java b/src/edu/nps/moves/dis7/utilities/stream/PduPlayer.java index 74ab847cde5fbd772d9b60578a2988c049b3f13e..5ec1250128f2fc0a18e4c86a44d3b3bde1c974f7 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); }