fixed waypoint crash

This commit is contained in:
Light2
2014-05-31 19:17:05 +02:00
parent 7d26b7ec13
commit 6a54b68bee
2 changed files with 3 additions and 2 deletions
@@ -158,9 +158,8 @@ public class WaypointObject extends IntangibleObject implements Serializable, ID
@Override
public byte[] getBytes() {
IoBuffer buffer = bufferPool.allocate(50 + name.length() * 2, false).order(ByteOrder.LITTLE_ENDIAN);
IoBuffer buffer = bufferPool.allocate(42 + name.length() * 2, false).order(ByteOrder.LITTLE_ENDIAN);
buffer.putLong(getObjectID());
buffer.putInt(getCellId());
buffer.putFloat(getPosition().x);