mirror of
https://github.com/overte-org/overte.git
synced 2025-04-21 20:44:14 +02:00
Update AssignmentFactory to use peekPrimitive
This commit is contained in:
parent
1af01c9003
commit
f7c1eaf967
1 changed files with 3 additions and 3 deletions
|
@ -20,10 +20,10 @@
|
|||
ThreadedAssignment* AssignmentFactory::unpackAssignment(NLPacket& packet) {
|
||||
|
||||
quint8 packedType;
|
||||
packet.peek(reinterpret_cast<char*>(&packedType), sizeof(packedType));
|
||||
|
||||
packet.peekPrimitive(&packedType);
|
||||
|
||||
Assignment::Type unpackedType = (Assignment::Type) packedType;
|
||||
|
||||
|
||||
switch (unpackedType) {
|
||||
case Assignment::AudioMixerType:
|
||||
return new AudioMixer(packet);
|
||||
|
|
Loading…
Reference in a new issue