mirror of
https://github.com/overte-org/overte.git
synced 2025-08-06 17:00:13 +02:00
handle overflow case
This commit is contained in:
parent
c03182546b
commit
fbc699d6b2
1 changed files with 5 additions and 1 deletions
|
@ -14,6 +14,7 @@
|
||||||
|
|
||||||
#include <cstdio>
|
#include <cstdio>
|
||||||
#include <cstring>
|
#include <cstring>
|
||||||
|
#include <limits>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|
||||||
#include <QtCore/QDataStream>
|
#include <QtCore/QDataStream>
|
||||||
|
@ -1478,7 +1479,10 @@ QUrl AvatarData::cannonicalSkeletonModelURL(const QUrl& emptyURL) const {
|
||||||
}
|
}
|
||||||
|
|
||||||
void AvatarData::processAvatarIdentity(const Identity& identity, bool& identityChanged, bool& displayNameChanged, quint64 messageNumber) {
|
void AvatarData::processAvatarIdentity(const Identity& identity, bool& identityChanged, bool& displayNameChanged, quint64 messageNumber) {
|
||||||
if (messageNumber < _lastIdentityPacketMessageNumber) {
|
|
||||||
|
if (messageNumber < _lastIdentityPacketMessageNumber &&
|
||||||
|
_lastIdentityPacketMessageNumber < std::numeric_limits<quint64>::max()) {
|
||||||
|
|
||||||
qCDebug(avatars) << "Ignoring late identity packet for avatar " << getSessionUUID()
|
qCDebug(avatars) << "Ignoring late identity packet for avatar " << getSessionUUID()
|
||||||
<< "messageNumber:" << messageNumber << "_lastIdentityPacketMessageNumber:" << _lastIdentityPacketMessageNumber;
|
<< "messageNumber:" << messageNumber << "_lastIdentityPacketMessageNumber:" << _lastIdentityPacketMessageNumber;
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in a new issue