Merge pull request #216 from NemesisMate/patch-2

Fixed BufferUnderflowException
experimental
Kirill Vainer 10 years ago
commit 01f673c826
  1. 2
      jme3-networking/src/main/java/com/jme3/network/serializing/serializers/SavableSerializer.java

@ -93,7 +93,7 @@ public class SavableSerializer extends Serializer {
@Override
public int read(byte[] b, int off, int len){
int toRead = len > input.remaining() ? input.remaining() : len;
input.get(b, off, len);
input.get(b, off, toRead);
return toRead;
}

Loading…
Cancel
Save