Fixed typo

This commit is contained in:
Atlante45 2014-09-15 18:47:55 -07:00
parent 198b14310f
commit 9b87e31739
2 changed files with 2 additions and 2 deletions

View file

@ -83,7 +83,7 @@ int Referential::pack(unsigned char* destinationBuffer) const {
int Referential::unpack(const unsigned char* sourceBuffer) {
const unsigned char* startPosition = sourceBuffer;
_type = (Type)*sourceBuffer++;
if (_type < 0 || _type >= NUM_TYPE) {
if (_type < 0 || _type >= NUM_TYPES) {
_type = UNKNOWN;
}
memcpy(&_version, sourceBuffer, sizeof(_version));

View file

@ -26,7 +26,7 @@ public:
JOINT,
AVATAR,
NUM_TYPE
NUM_TYPES
};
Referential(const unsigned char*& sourceBuffer, AvatarData* avatar);