mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 03:44:02 +02:00
fix reference to packet that is now buffer
This commit is contained in:
parent
e5722098f6
commit
357963b6e0
1 changed files with 1 additions and 1 deletions
|
@ -298,7 +298,7 @@ int AvatarData::parseDataFromBuffer(const QByteArray& buffer) {
|
|||
// = 51 bytes
|
||||
int minPossibleSize = 51;
|
||||
|
||||
int maxAvailableSize = packet.size() - offset;
|
||||
int maxAvailableSize = buffer.size();
|
||||
if (minPossibleSize > maxAvailableSize) {
|
||||
if (shouldLogError(now)) {
|
||||
qCDebug(avatars) << "Malformed AvatarData packet at the start; "
|
||||
|
|
Loading…
Reference in a new issue