mirror of
https://github.com/overte-org/overte.git
synced 2025-08-10 05:23:09 +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
|
// = 51 bytes
|
||||||
int minPossibleSize = 51;
|
int minPossibleSize = 51;
|
||||||
|
|
||||||
int maxAvailableSize = packet.size() - offset;
|
int maxAvailableSize = buffer.size();
|
||||||
if (minPossibleSize > maxAvailableSize) {
|
if (minPossibleSize > maxAvailableSize) {
|
||||||
if (shouldLogError(now)) {
|
if (shouldLogError(now)) {
|
||||||
qCDebug(avatars) << "Malformed AvatarData packet at the start; "
|
qCDebug(avatars) << "Malformed AvatarData packet at the start; "
|
||||||
|
|
Loading…
Reference in a new issue