mirror of
https://github.com/overte-org/overte.git
synced 2025-04-21 06:44:06 +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 <cstring>
|
||||
#include <limits>
|
||||
#include <stdint.h>
|
||||
|
||||
#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) {
|
||||
if (messageNumber < _lastIdentityPacketMessageNumber) {
|
||||
|
||||
if (messageNumber < _lastIdentityPacketMessageNumber &&
|
||||
_lastIdentityPacketMessageNumber < std::numeric_limits<quint64>::max()) {
|
||||
|
||||
qCDebug(avatars) << "Ignoring late identity packet for avatar " << getSessionUUID()
|
||||
<< "messageNumber:" << messageNumber << "_lastIdentityPacketMessageNumber:" << _lastIdentityPacketMessageNumber;
|
||||
return;
|
||||
|
|
Loading…
Reference in a new issue