From d077c9f1dee6f95c513e946cd21cd3e9f2a3ed5a Mon Sep 17 00:00:00 2001 From: Seth Alves Date: Tue, 18 Apr 2017 11:58:56 -0700 Subject: [PATCH] print rather than crash in what should be an impossible situation --- interface/src/avatar/AvatarActionFarGrab.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/interface/src/avatar/AvatarActionFarGrab.cpp b/interface/src/avatar/AvatarActionFarGrab.cpp index 28f7f2abf7..afa21e58d7 100644 --- a/interface/src/avatar/AvatarActionFarGrab.cpp +++ b/interface/src/avatar/AvatarActionFarGrab.cpp @@ -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;