print rather than crash in what should be an impossible situation

This commit is contained in:
Seth Alves 2017-04-18 11:58:56 -07:00
parent fbd4677a9a
commit d077c9f1de

View file

@ -44,11 +44,14 @@ void AvatarActionFarGrab::deserialize(QByteArray serializedArguments) {
EntityDynamicType type;
dataStream >> type;
assert(type == getType());
QUuid id;
dataStream >> id;
assert(id == getID());
if (type != getType() || id != getID()) {
qDebug() << "AvatarActionFarGrab::deserialize type or ID don't match." << type << id << getID();
return;
}
uint16_t serializationVersion;
dataStream >> serializationVersion;