mirror of
https://github.com/overte-org/overte.git
synced 2025-08-11 00:53:17 +02:00
Change read back to peek - guess it was that way for a reason
This commit is contained in:
parent
f73a7c0883
commit
f63360a87a
1 changed files with 1 additions and 1 deletions
|
@ -24,7 +24,7 @@
|
||||||
ThreadedAssignment* AssignmentFactory::unpackAssignment(ReceivedMessage& message) {
|
ThreadedAssignment* AssignmentFactory::unpackAssignment(ReceivedMessage& message) {
|
||||||
|
|
||||||
quint8 packedType;
|
quint8 packedType;
|
||||||
if (message.readPrimitive(&packedType) != sizeof(packedType)) {
|
if (message.peekPrimitive(&packedType) != sizeof(packedType)) {
|
||||||
return nullptr;
|
return nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue