Commit 11788ee7 authored by Andreas Wahlen's avatar Andreas Wahlen
Browse files

Bugfix for SimplePacketType.getDataSize()

parent 72ba6f56
...@@ -41,7 +41,8 @@ public class SimplePacketType extends DataType { ...@@ -41,7 +41,8 @@ public class SimplePacketType extends DataType {
@Override @Override
public int getDataSize(Object o) { public int getDataSize(Object o) {
return HEADER_SIZE + payloadType.getDataSize(o); Object[] arr = (Object[]) o;
return HEADER_SIZE + payloadType.getDataSize(arr[1]);
} }
@Override @Override
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment