mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 12:57:59 +02:00
print rather than crash in what should be an impossible situation
This commit is contained in:
parent
fbd4677a9a
commit
d077c9f1de
1 changed files with 5 additions and 2 deletions
|
@ -44,11 +44,14 @@ void AvatarActionFarGrab::deserialize(QByteArray serializedArguments) {
|
||||||
|
|
||||||
EntityDynamicType type;
|
EntityDynamicType type;
|
||||||
dataStream >> type;
|
dataStream >> type;
|
||||||
assert(type == getType());
|
|
||||||
|
|
||||||
QUuid id;
|
QUuid id;
|
||||||
dataStream >> 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;
|
uint16_t serializationVersion;
|
||||||
dataStream >> serializationVersion;
|
dataStream >> serializationVersion;
|
||||||
|
|
Loading…
Reference in a new issue