fix return of bytes read to push pointer forwards

This commit is contained in:
Stephen Birarda 2013-04-22 18:41:12 -07:00
parent 7eee3404c7
commit 79d547e9d0

View file

@ -96,11 +96,12 @@ int AvatarData::getBroadcastData(unsigned char* destinationBuffer) {
// called on the other agents - assigns it to my views of the others
int AvatarData::parseData(unsigned char* sourceBuffer, int numBytes) {
unsigned char* startPosition = sourceBuffer;
// increment to push past the packet header
sourceBuffer++;
unsigned char* startPosition = sourceBuffer;
memcpy(&_bodyPosition, sourceBuffer, sizeof(float) * 3);
sourceBuffer += sizeof(float) * 3;