Merge pull request #114 from birarda/avatar-from-mixer

fix returned number of bytes read from AvatarData parseData
This commit is contained in:
birarda 2013-04-22 18:41:49 -07:00
commit e00a387020

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;